How to create a temporary table in ORACLE with READ ONLY access -


i using create global temporary table script create temporary table in oracle db showing sql error: ora-01031: insufficient privileges. want create temp table read access. plz me out in this.

what trying achieve is:

  1. we have create table in destination database greenplum.
  2. in source database(oracle) getting select query user example: "select * abc join def d on a.col1=d.col1" creating temp table(in case of oracle) on top of example "create global temporary table table101 (select * abc join def d on a.col1=d.col1)".
  3. then using temp table required information information_schema example "select * all_tab_columns table_name='table101' ".by column_name,data_type,character_maximum_length etc information. using information can "create table statement" using javascript .
  4. then store create table statement in variable & run in execute row script(step in pentaho data integration tool) create table in destination db.
  5. problem have read access in oracle. do.

note: in short, creating table in destination db using select statement source db. means structure of table in dest db depends on select query in source db.

if target database oracle database should able set database link there source database , use "create table select * +source table+@+database link+;"

whoops, noticed 2014. oh well, maybe future inquirers.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -