create table in the remote database

Hi friends,

Is it possible to create a table in a remote with the syntax as database

create table - on the remote database
in select * from tbl - table with user defined data types.

Thank you
Akila Mathon.

Remote DDL operations are not allowed.

Create a procedure on the remote database, which will create the table using

execute immediate 'Create table table_1 as select * from table@remote_link '

Example
 create procedure ddl_remote(str varchar2)
 as
 begin
   execute immediate str ;
 end ;
 /

Where remote_link is the database when you call the procedure.

Directly GRANT EXECUTE CREATE TABLE to the user in which the procedure is created.

Call the procedure of your current database.

begin
   ddl_remote@DB_remote('create table emp as select * from emp@remote_link ') ;
end ;
/

HTH
SS

Tags: Database

Similar Questions

  • create table on the production database

    Hi expert I want some knowledge in real time
    If a user has requested to create a table on the production database where DBA one should contact 1.
    form where dba approval for create table.


    Thanks and greetings
    Sanat

    It depends on your hierarchy of society. Generally, your immediate boss.

  • Create the remote database using dblink view

    Hello

    I have a small question for you.

    Is it possible to create the remote database using dblink view? Following syntax error

    create discover ViewName@DbLinkDame (ColumnName) as
    (select 1 double)

    "ORA-00905: lack of keyword.

    Is this possible at all?
    And particularly - is this possible when the remote database is MSSQL and I use heterogeneous services?

    I really appreciate your help
    Best regards
    Wojtek

    Published by: wojpik on October 21, 2009 03:59

    This is a workaround for a remote Oracle database (use the queue of work), however:

    http://asktom.Oracle.com/pls/asktom/f?p=100:11:0:P11_QUESTION_ID:597877500346143250

    but I have no idea if something similar is possible for MSSQL...

  • is this allowed? materialized view the log for the remote database (via db lin

    : Hi guys.

    try to do

    create materialized view log on user@xxx with sequence, rowid (col1, col2), including the new values;


    where xxx is a remote db link
    ------

    had this error

    ORA-00949 - illegal reference to the remote database

    Google but do not know whelther this error is an internal error or not allowed for mviews characteristic.

    help pleaase!

    Rgds,
    Noob

    do you mean that the materialized log should be created in the same location where the main table

    YES. Of course, it must be there! Any update to the main table should also update the MV log that is created against it!

    Hemant K Collette

  • Reference to the remote database

    Is it possible to create a foreign key to a table where the primary key is in the remote database?
    Remote database is related to the local database?

    Thanks in advance!

    Hello

    Actually, no. You create a trigger (before insert, update, delete) to maintain a referential constraint.

    Kind regards

    Thiago Hyppolito

  • ORA-02019: description of the connection to the remote database not found

    Hi all

    10.2.0.4 on solaris 10.

    I can tnsping and connect to a tnsentry in tnsnames.ora from the server, but when I use the same in dblink, get the error below:
    ORA-02019: description of the connection to the remote database not found. Here's the scenario. any idea?
    medt01:medtora:/medt/oracle/product/102/network/admin$ tnsping medcon
    
    TNS Ping Utility for Solaris: Version 10.2.0.4.0 - Production on 09-NOV-2011 23:49:23
    
    Copyright (c) 1997,  2007, Oracle.  All rights reserved.
    
    Used parameter files:
    /medt/oracle/product/102/network/admin/sqlnet.ora
    
    
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.102)(PORT = 1523))) (CONNECT_DATA = (SERVICE_NAME = medcon)))
    OK (20 msec)
    medt01:medtora:/medt/oracle/product/102/network/admin$ sqlplus medts_ed/medfcv@medcon
    
    SQL*Plus: Release 10.2.0.4.0 - Production on Wed Nov 9 23:49:31 2011
    
    Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.
    
    
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    
    SQL> Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    medt01:medtora:/medt/oracle/product/102/network/admin$ sqlplus medts_ed/medfcv@medcon
    
    SQL*Plus: Release 10.2.0.4.0 - Production on Wed Nov 9 23:59:54 2011
    
    Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.
    
    
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    
    SQL> exit
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    medt01:medtora:/medt/oracle/product/102/network/admin$ tnsping medcon
    
    TNS Ping Utility for Solaris: Version 10.2.0.4.0 - Production on 10-NOV-2011 00:00:02
    
    Copyright (c) 1997,  2007, Oracle.  All rights reserved.
    
    Used parameter files:
    /medt/oracle/product/102/network/admin/sqlnet.ora
    
    
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.102)(PORT = 1523))) (CONNECT_DATA = (SERVICE_NAME = medcon)))
    OK (0 msec)
    medt01:medtora:/medt/oracle/product/102/network/admin$ sqlplus medts_ed/medfcv@medcon
    
    SQL*Plus: Release 10.2.0.4.0 - Production on Thu Nov 10 00:00:07 2011
    
    Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.
    
    
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    
    SQL> exit
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    medt01:medtora:/medt/oracle/product/102/network/admin$ sqlplus medc_pl/medxcdsw3
    
    SQL*Plus: Release 10.2.0.4.0 - Production on Thu Nov 10 00:00:17 2011
    
    Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.
    
    
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    With the Partitioning, Real Application Clusters, OLAP, Data Mining
    and Real Application Testing options
    
    SQL> create database link med2con connect to medts_ed identified by medfcv using  'medcon' ;
    
    Database link created.
    
    SQL> select * from medc@med2con;
    select * from medc@med2con
                                *
    ERROR at line 1:
    ORA-02019: connection description for remote database not found

    Try this,

    SQL > create database link med2con connect to medts_ed identified by using medfcv ' (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.0.102)(PORT = 1523))) (CONNECT_DATA = (SERVICE_NAME = medcon)))';

    SQL > select * from medc@med2con;

  • ORA-17629: unable to connect to the remote database server

    Hello

    I have put Dataguard in place with primary and 1 physical standby for learning/test database:

    I do NOT plan the unloading of RMAN backups on the physics of the day before.

    Recorded the primary database with RMAN and when "resync catalog db_unique_name all;" is issued.
    I get the following error:
    ---------------------------------------------------------------------------------------------------------------------
    RMAN > catalog resync db_unique_name all;
    from full resynchronization of the recovery catalog
    full complete Resync
    resynchronization of data base with DB_UNIQUE_NAME ASTTESTB
    RMAN-00571: ===========================================================
    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
    RMAN-00571: ===========================================================
    RMAN-03002: failed to db_unique_name resynchronization command at 28/09/2011 11:34:23
    ORA-17629: unable to connect to the remote database server
    ORA-17628: Oracle 17629 error returned by remote Oracle Server
    ------------------------------------------------------------------------------------------------------------------
    Configuration of RMAN for the main proceedings are the following:

    RMAN > show all to db_unique_name asttest;

    RMAN settings for database with db_unique_name ASTTEST are:
    CONFIGURE RETENTION POLICY TO RECOVERY OF 7-DAY WINDOW;
    CONFIGURE BACKUP OPTIMIZATION # by default
    SET UP DEFAULT DISK DEVICE TYPE; # by default
    CONFIGURE CONTROLFILE AUTOBACKUP # by default
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO "%F" # by default
    SET UP THE DEVICE TYPE DISK PARALLELISM 1 BACKUP BACKUPSET TYPE; # by default
    CONFIGURE BACKUP OF DATA TO DISK FILE TYPE DEVICE TO 1; # by default
    CONFIGURE BACKUP ARCHIVELOG FOR DEVICE TYPE DISK TO 1; # by default
    CONFIGURE MAXSETSIZE TO UNLIMITED; # by default
    CONFIGURE ENCRYPTION OF DATABASE # by default
    CONFIGURE THE ENCRYPTION ALGORITHM "AES128"; # by default
    CONFIGURE COMPRESSION ALGORITHM 'BASIC' AND 'DEFAULT' LIBERATION OPTIMIZE FOR TRUE LOAD; # by default
    CONFIGURE DB Nom_unique "asttest" CONNECT IDENTIFIER ' ASTTEST. UMDNJ. EDU'; _
    CONFIGURE DB "Asttestb" of nom_unique CONNECT IDENTIFIER "asttestb"; _
    CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON ALL STANDBY;
    CONFIGURE SNAPSHOT CONTROLFILE NAME TO ' / opt/oracle/product/11.2.0/dbhome_1/dbs/snapcf_asttest.f'; # by default

    Configuration of RMAN for instance physical standby are:

    RMAN > show all to db_unique_name asttestb;

    RMAN settings for database with db_unique_name ASTTESTB are:
    CONFIGURE RETENTION POLICY TO RECOVERY OF 7-DAY WINDOW;
    CONFIGURE BACKUP OPTIMIZATION # by default
    SET UP DEFAULT DISK DEVICE TYPE; # by default
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO "%F" # by default
    SET UP THE DEVICE TYPE DISK PARALLELISM 1 BACKUP BACKUPSET TYPE; # by default
    CONFIGURE BACKUP OF DATA TO DISK FILE TYPE DEVICE TO 1; # by default
    CONFIGURE BACKUP ARCHIVELOG FOR DEVICE TYPE DISK TO 1; # by default
    CONFIGURE MAXSETSIZE TO UNLIMITED; # by default
    CONFIGURE ENCRYPTION OF DATABASE # by default
    CONFIGURE THE ENCRYPTION ALGORITHM "AES128"; # by default
    CONFIGURE COMPRESSION ALGORITHM 'BASIC' AND 'DEFAULT' LIBERATION OPTIMIZE FOR TRUE LOAD; # by default
    CONFIGURE DB Nom_unique "asttest" CONNECT IDENTIFIER ' ASTTEST. UMDNJ. EDU'; _
    CONFIGURE DB "Asttestb" of nom_unique CONNECT IDENTIFIER "asttestb"; _
    CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON ALL STANDBY;
    CONFIGURE SNAPSHOT CONTROLFILE NAME TO ' / opt/oracle/product/11.2.0/dbhome_1/dbs/snapcf_asttest.f'; # by default

    ----------------------------------------------------------------------------------------------------------------------

    When I tested missing missing datafile and control file scenario on the primary database, it worked (Advisor to recover data)

    However, missing datafile scenario does not work on the physics of the day before.
    Here are the steps I followed:
    ********************************************
    1 renamed a file of physical data - in standby mode:

    bash - $3.2 ls - ltr

    Total 107832

    -rw - r - 1 oracle oinstall 52429312 16 September 12:19 asttest_redo03.log

    -rw - r - 1 oracle oinstall 61874176 Sep 29 15:41 asttest_temp01.dbf

    -rw - r - 1 oracle oinstall 52436992 5 Oct 11:00 rmandg_data01.dbf

    bash - $3.2 mv rmandg_data01.dbf rmandg_data01.dbf_old

    bash - $3.2 ls - ltr

    Total 107832

    -rw - r - 1 oracle oinstall 52429312 16 September 12:19 asttest_redo03.log

    -rw - r - 1 oracle oinstall 61874176 Sep 29 15:41 asttest_temp01.dbf

    -rw - r - 1 oracle oinstall 52436992 5 Oct 11:00 rmandg_data01.dbf_old


    2. restore the datafile (find the data file # view v$ recover_file):
    RMAN > restore datafile 5;



    From restoration to 5 October 11

    Segmentation fault


    3. in spite of the error, published "recover datafile command.

    4 RMAN > recover datafile 5;



    From pick up to 5 October 11

    allocated channel: ORA_DISK_1

    channel ORA_DISK_1: SID = 10 type of device = DISK

    RMAN-00571: ===========================================================

    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.

    RMAN-00571: ===========================================================

    RMAN-03002: failure of the command recover at 05/10/2011 12:00:40

    RMAN-06094: datafile 5 must be restored.


    5. manually copy the physical primary datafile - in standby mode, & then problem recover RMAN command:
    bash - $3.2 scp oracle@msudrainier:/ora03/oradata/asttest/rmandg_data01.dbf.

    rmandg_data01.dbf 100% 50 MB 16.7 MB/s 00:03

    bash - $3.2 ls - ltr

    Total 159096

    -rw - r - 1 oracle oinstall 52429312 16 September 12:19 asttest_redo03.log

    -rw - r - 1 oracle oinstall 61874176 Sep 29 15:41 asttest_temp01.dbf

    -rw - r - 1 oracle oinstall 52436992 5 Oct 11:49 rmandg_data01.dbf_old

    -rw - r - 1 oracle oinstall 52436992 5 Oct 12:01 rmandg_data01.dbf


    RMAN > recover datafile 5;



    From pick up to 5 October 11

    using channel ORA_DISK_1



    RMAN-00571: ===========================================================

    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.

    RMAN-00571: ===========================================================

    RMAN-03002: failure of the command recover at 05/10/2011 12:01:59

    RMAN-06067: RECOVER the DATABASE required with a backup control file or created


    6. of course RMAN commands have failed to restore the missing data file;
    So I renamed the file to original and rebooted repeat services applies - this restore the data file and now the configuration state of the DG is normal.
    *********************************************************************************

    Not quite sure if I'm still he hands the right way or if the error above is related to RMAN not able to synchronize with the physics of the day before.

    The documentation I want to talk to is here (1 paragraph):

    [http://download.oracle.com/docs/cd/B28359_01/server.111/b28294/rman.htm#BAJDFBDD | http://download.oracle.com/docs/cd/B28359_01/server.111/b28294/rman.htm#BAJDFBDD]


    Any pointers/direction and advise is greatly appreciated.

    Best regards
    NK

    I got it!

    /home/oracle:STANDBY >$ORACLE_HOME/bin/rman target sys/ catalog /@rcatalog
    
    Recovery Manager: Release 11.2.0.1.0 - Production on Fri Oct 7 14:12:10 2011
    
    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
    
    connected to target database: PRIMARY (DBID=1562898590, not open)
    connected to recovery catalog database
    
    RMAN> resync catalog from db_unique_name all;
    
    resyncing from database with DB_UNIQUE_NAME PRIMARY
    starting full resync of recovery catalog
    RMAN output not resynced for database with DB_UNIQUE_NAME PRIMARY
    full resync complete
    

    If the necessary connection string a target/sys and a catalogue

    RMAN target sys / catalog /@rcatalog

    I did my standby

    Will try the primary

    Best regards

    mseberg

    Work on both. Great question!

    connected to target database: PRIMARY (DBID=1562898590)
    connected to recovery catalog database
    
    RMAN> resync catalog from db_unique_name all;
    
    starting full resync of recovery catalog
    full resync complete
    
    resyncing from database with DB_UNIQUE_NAME STANDBY
    RMAN output not resynced for database with DB_UNIQUE_NAME STANDBY
    
    RMAN> 
    

    Published by: mseberg on October 7, 2011 14:16

    Thanks a ton for sticking to it. I'll add this little thing to my web site.

    Published by: mseberg on October 7, 2011 14:22

  • Cannot get the remote database catalog

    Hello

    I use the ODBC Oracle (version 11.2.0.1.0) gateway to connect to a database from Intersystems Cache. I can run a query of the following type

    Select * from remote_table@cachedb

    However, the issuance

    Select * from all_tables@cachedb returns the following error

    >
    ORA-28500: connection between ORACLE and a non-Oracle system has sent this message:
    [Cache ODBC] [State: S0002] [Native code 30]
    [libcacheodbc.so]
    [SQLCODE: < - > 30: < Table or view not found >]
    [Cache error: < < SYNTAX > errdone + 2 ^ % qaqqt >]
    [Details: prepare >]
    [% msg: < SQL ERROR #30: Table ' SQLUSER.] [' Not found ALL_TABLES >] {S0002, NativeErr = 30}
    ORA-02063: preceding 7 lines of XXX
    >

    Obviously, there is no table named "all_tables' to the remote database. I was under the impression that the executable "dg4ODBC" translate properly a query on "all_tables', 'object' etc. in the ODBC equivalent to interrogate the database catalog.

    How we supposed to to query the remote database catalog?

    CITY
  • Problem creating DEV_PORTAL via the remote control

    Hello

    I would really appreciate your help to meet slot problem:

    in OBIE11g when creating patterns via the remote control, all the patterns, I chose to be created are working well except DEV_PORTAL, which throws the error

    SQL error when connecting with thin driver (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST=HOST_NAME) (PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = SERVICE_NAME))): ORA-01017: invalid user name password login denied

    The problem is this role/user/password is correct, because:

    1 other patterns are created by using the same credentials (with SYSDBA rola)
    2. I can connect (via SQL developer) to database using the same settings and everything works

    I encountered a similar problem on the forum under

    Creating DEV_PORTAL schema for Oracle Forms

    but without any solution working :(

    Thanks in advance

    Why you install DEV_PORTAL scheme, for the installation of obiee 11g select Oracel Business Intelligence in the performance of the remote control. It will install only two MDS and BIPlatform patterns.

  • DOUBLE DB: ORA-17629: unable to connect to the remote database server

    [oracle@ora11g1 ~] $ export ORACLE_SID = sales
    [oracle@ora11g1 ~] $ rman target sys/sales@sales

    Recovery Manager: release 11.2.0.1.0 - Production Wed Jun 5 13:00:15 2013

    Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.

    connected to target database: SALES (DBID = 690066655)

    RMAN > Connect auxiliary sys/salestby2@salestby2

    connected to the auxiliary database: SALES (not mounted)

    RMAN > CURRENT SPFILE DATABASE of TARGET duplicate FOR THE EVE OF the DATABASE
    2 > DB_NAME SET = 'sales '.
    3 > SET DB_UNIQUE_NAME = "salestby2".
    4 > control_files='/u02/oradata/salestby2/control01.ctl','/u02/oradata/salestby2/control02.ctl SET'
    5 > SET DB_FILE_NAME_CONVERT = "/ u02/oradata/sales /", "/ u02/oradata/salestby2 / '.
    6 > SET LOG_FILE_NAME_CONVERT = "/ u02/oradata/sales /", "/ u02/oradata/salestby2 / ';

    From duplicate Db 5 June 13
    using the control file of the target instead of recovery catalog database
    allocated channel: ORA_AUX_DISK_1
    channel ORA_AUX_DISK_1: SID = 20 type of device = DISK

    content of Script memory:
    {
    backup that copy reuse
    TargetFile ' / auxiliary format of the u01/app/oracle/product/11.2.0/dbhome_1/dbs/orapwsales
    ' / u01/app/oracle/product/11.2.0/dbhome_1/dbs/orapwsalestby2' targetfile
    ' / u01/app/oracle/product/11.2.0/dbhome_1/dbs/spfilesales.ora' auxiliary format
    ' / u01/app/oracle/product/11.2.0/dbhome_1/dbs/spfilesalestby2.ora';
    clone of SQL 'alter system set spfile = "/u01/app/oracle/product/11.2.0/dbhome_1/dbs/spfilesalestby2.ora";
    }
    execution of Script memory

    From backup 5 June 13
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID = 58 type of device = DISK
    RMAN-03009: failure of the backup command on the channel ORA_DISK_1 at 05/06/2013 13:05:26
    ORA-17629: unable to connect to the remote database server
    ORA-17627: ORA-01017: name of user and password invalid. connection refused
    ORA-17629: unable to connect to the remote database server
    continue other job steps, not a not working will not re-run
    RMAN-00571: ===========================================================
    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Db in dual at 05/06/2013 13:05:27
    RMAN-03015: an error has occurred in the script stored memory Script
    RMAN-03009: failure of the backup command on the channel ORA_DISK_1 at 05/06/2013 13:05:27
    ORA-17629: unable to connect to the remote database server
    ORA-17627: ORA-01017: name of user and password invalid. connection refused
    ORA-17629: unable to connect to the remote database server

    Welcome to the oracle forums!

    Please take the time to go through [url https://forums.oracle.com/forums/ann.jspa?annID=1535] FAQ PAGE

    Always after 4 version oracle numbers and details of the OS.

    Post any request outside has put between.

      \
    

    Tags

    Mark your questions answers if you give the answer

    Password for the SYS user on primary and standby must be the same. Copy the master password for the backup server

    SCP $ORACLE_HOME/dbs/orapwv112 : /u01/app/oracle/product/11.2/dbs/orapwdupv112

  • Creating table in the schema has with the user B and granting permissions to the user C

    Hello, I have a problem fun - we have a large table which requires a batch to make millions of updates, and he needs to finish more quickly. It takes several hours as an update, but a select create table did the same thing in about a minute. Yay! Then we just delete the old table and rename the new table to the former, rebuild all the index and grant select/insert/update/delete permissions to another user who needs access... and there is the problem, Oracle said insufficient privs.

    We have A figure, which is the owner of the table, userid B who done all the stuff of application batch and userid C which performs inserts for a process of middleware. None of them are actual users, of course. We want that user B to do the ETG, rename, rebuild and re-grant of the authorisation of the index. But user B apparently cannot grant permissions on objects in the schema A to user C, even if B has created the table and has the role DBA (not ideal, I know)!

    What's really crazy is that there is no sense unique user b can grant permissions to user C, which is to:

    grant select any table USER c;
    grant insert any table USER c;
    grant update any table USER c;
    Grant delete any table USER c;

    It seems really perverse can create tables in diagram A and even grant C privs "whole table" that user B, but may not grant privs specifically on this object in the schema A, even with DBA privs. I must be missing something... right?

    Yes. By default, the stored procedures are stored procedures from DEFINER rights. If A is the owner of a stored procedure, this stored procedure can do whatever A enjoys the privileges to directly. If A grants B privileges RUN this stored procedure, when B calls the stored procedure, the procedure runs with the privileges.

    I agree point stew, however, re-creating objects in Oracle is generally a bad idea and a TRUNCATE with one insert direct-path, possibly combined with the deactivation and the rebuilding of the index would be more appropriate than a DEC. If you're going to stick with this Assignment, however, that really do in a stored procedure owned by A while B has no need to CREATE ANY TABLE.

    Justin

  • Creating tables with the same Structure and with the remote control FOR the parts database

    Hello

    I have a remote DB connection and a local DB connection in my system
    I want to create the same Table and data from my DB remote to Local Connection DB connection.

    Please tell me how to do this?

    CREATE TABLE LOCAL_TABLE AS SELECT * FROM REMOTE_TABLE@TNS_ALIAS;

  • on the remote database table relationship

    I have databases @orcl1 and @orcl2. I built relationships join of a table of @orcl1 with three tables of @orcl2. What are the performance? The two database are not on the same server.

    Published by: dealer on December 10, 2008 23:48

    Hello
    I meant create mview in @orcl2 based on the data you needed from @orcl1. Once you have located mview in @orcl2, then set your relationship with mview and other tables join in @orcl2.

    Hope this helps

    Concerning

  • By comparing the remote database Table structure?

    Is it possible to compare two struture of remote database table in Sql Developer.
    As for example two DB loacted in different IP location like
    Db1 DB2 in IP.02 and IP.01
    both have the same structure and schema. connected with sql developer.

    My Question is I need to compare both of the database table structure and display don't miss you things,.,.
    A third-party tool is available, but it is possible in Sql Developer...

    You are welcome. As k. pointed out, it did not work properly in older versions.

  • How can I include a link to the remote database as a variable in pl/sql?

    I am writing a new procedure for the parcel and it can be run on different environments. Excerpts from the main query in a table via a database link. I created variables to identify the owner of the current scheme, the owner of the remote table and the database link remote. The problem I have is to put this together in the main query for example.

    PROCEDURE check_table
    AS

    v_schema_owner varchar2 (30);
    v_database_link_owner varchar2 (30);
    v_database_link_value varchar2 (128);
    v_table varchar2 (500);


    BEGIN

    -Download the current schema owner-
    V_schema_owner INTO SELECT username
    Of user_users;

    -The owner of the link database download-
    Master_owner SELECT INTO v_database_link_owner
    OF dba_mview_refresh_times
    WHERE name = 'TEST_MV '.
    AND the owner = v_schema_owner;

    -Download database - link chain
    Substr(master_link,2) SELECT INTO v_database_link_value
    OF dba_mviews
    WHERE mview_name = 'TEST_MV. '
    AND the owner = v_schema_owner;

    v_table: = v_database_link_owner |'. ' |' test_table@'|| v_database_link_value;


    INSERT INTO check_table
    SELECT trunc (sysdate) as check_date, 'Error of Test' as check_reason
    OF v_table-* this is where he fails to compile * -.
    WHERE texte_erreur like '% Test Failed ";

    COMMIT;

    EXCEPTION
    WHEN NO_DATA_FOUND
    THEN
    NULL;

    END check_table;


    I get "table or view does not exist" on v_table. I tried to not have a variable v_table and set the string for the name of the table directly in the query, but it does not work. Only when I hardcode the owner of the table and the link doesn't it works but ideally I'd rather not have to do that.

    Does anyone have any suggestions?

    Thank you
    GB

    >
    INSERT INTO check_table
    SELECT trunc (sysdate) as check_date, 'Error of Test' as check_reason
    OF v_table-* this is where he fails to compile *.
    WHERE texte_erreur like '% Test Failed ";
    >

    Hi, you use an EXECUTE IMMEDIATE to execute dynamic sql code

    vSql := 'INSERT INTO check_table' ||
                    ' SELECT TRUNC(sysdate) as check_date, ''Test Error'' as check_reason'||
                       ' FROM '||v_table||
                          ' WHERE error_text like ''Test Failed%''';
    EXECUTE IMMEDIATE vSql;
    

    Check this too
    http://download.Oracle.com/docs/CD/B19306_01/AppDev.102/b14261/dynamic.htm#i14500
    http://download.Oracle.com/docs/CD/B19306_01/AppDev.102/b14261/dynamic.htm#CHDGJEGD

    Concerning
    johnxjean

Maybe you are looking for

  • Computer Vista laptop cannot connect to new wireless router

    I had the laptop for about a year and a half, and he has a history of being pretty skittish about the wireless connection.  Often he simply refuses to do so.  During vacation last year, for example, the other three laptops connected family easily to

  • Forward the e-mail messages to slave drive.

    My computer with Vista Ultimate would not start after a lot of repair / restore point tests.  I pulled the HD and put a new in a clean install of Vista Ultimate.  I then re-attached my old HD as a lsave and I can see now all my old files, but I can't

  • After that Windows Update Setup, preinstalled Vista does not show genuine

    Diagnostic report (1.9.0027.0):-----------------------------------------Validation of Windows data-->Validation status: invalid licenseValidation code: 50Code of Validation caching online: 0xc004c4a8Windows product key: *-* - F4GJK - KG77H-B9HD2The W

  • I lost a few tast bar icons

    the icons for battery level and for the security of microsoft power protection are missing from the taskbar. I can't find them!

  • cant stop KNCTR

    I TRIED TO STOP KNCTR, E RESPONSE VERY GIVING TO ME DOES NOT WORK.