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.
Tags: Database
Similar Questions
-
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:48Hello
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
-
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 -
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
-
How to select data from a remote database table?
Hi friends,
I think I've seen before a sqlplus program that can select data from a remote database table?
Witnessed: IP, SID, PORT
The following is correct?
(I am connected to a local database)
SELECT COUNT (*) IN THE EMP@IP:SID/PORT;
Thank you very much
Ms. KSalvation;
I think, that you can create dblink wihtout any problem yet, it's a PROD. After your selection, you can drop dblink
Respect of
HELIOS -
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,
Noobdo 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
-
MV incremental update on remote database table join query
Hello
I am creating a MV with incremental refresh option on a join query with 2 tables of database remote.
Created journals of MV on 2 tables in the remote database.
DROP MATERIALIZED VIEW LOG ON emp;
CREATE MATERIALIZED VIEW LOG ON emp WITH ROWID;
DROP MATERIALIZED VIEW LOG ON dept;
CREATE MATERIALIZED VIEW LOG ON WITH ROWID dept;
Now, try to create the MV,
Mv_emp_dept CREATE MATERIALIZED VIEW
IMMEDIATE CONSTRUCTION
REFRESH QUICKLY
START BY SYSDATE
1 /(24*15) NEXT SYSDATE+.
WITH THE PRIMARY KEY
AS
SELECT e.ename, e.job, d.dname FROM emp@remote_db e, dept@remote_db d
WHERE e.deptno = d.deptno
AND e.sal > 800;
Get the error ORA-12052.
Can you please help me.
Thank you
AnjanNeed to include the ROWID in the mview. Should be something like: -.
CREATE MATERIALIZED VIEW mv_emp_dept BUILD IMMEDIATE REFRESH FAST AS SELECT e.rowid rowide, e.ename, e.job, d.rowid rowidd, d.dname FROM emp@remote_db e,dept@remote_db d WHERE e.deptno=d.deptno AND e.sal>800;
-
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
-
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 serverWelcome 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 -
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
NKI 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
-
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:59This 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...
-
The datapump export table structure
Hello
Oracle Version: 10.2.0.1 and 11.2.0.1
Operating system: Linux
I need a help about export only the structure of the table in 10g.
11 g when I tried to export the table structure for tables starting with ST_LO_ % it works fine and here is the result for the export declaration.
But when I tried in 10g it throws errors and here are the export script.[oracle@vtlsys2-209 dbdump]$ expdp CNGSTORES_TEST_DEC1610/CNGSTORES_TEST_DEC1610 directory=dbdump dumpfile=chala_feb2111.dmp logfile=chala_feb2111.log tables="ST_IL_%","ST_LO_%","SCM%","ARCH%" exclude=statistics,grants job_name=tablesfil parallel=4 version=10.2 content=metadata_only Export: Release 11.2.0.1.0 - Production on Mon Feb 21 14:34:16 2011 Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved. UDE-01017: operation generated ORACLE error 1017 ORA-01017: invalid username/password; logon denied Username: cngstores_test_dec1610/cngstores_test_dec1610 Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production With the Partitioning, OLAP, Data Mining and Real Application Testing options Starting "CNGSTORES_TEST_DEC1610"."TABLESFIL": cngstores_test_dec1610/******** directory=dbdump dumpfile=chala_feb2111.dmp logfile=chala_feb2111.log tables=ST_IL_%,ST_LO_%,SCM%,ARCH% exclude=statistics,grants job_name=tablesfil parallel=4 version=10.2 content=metadata_only Processing object type TABLE_EXPORT/TABLE/TABLE Processing object type TABLE_EXPORT/TABLE/INDEX/INDEX Processing object type TABLE_EXPORT/TABLE/CONSTRAINT/CONSTRAINT Processing object type TABLE_EXPORT/TABLE/COMMENT Processing object type TABLE_EXPORT/TABLE/CONSTRAINT/REF_CONSTRAINT Processing object type TABLE_EXPORT/TABLE/INDEX/FUNCTIONAL_AND_BITMAP/INDEX Master table "CNGSTORES_TEST_DEC1610"."TABLESFIL" successfully loaded/unloaded ****************************************************************************** Dump file set for CNGSTORES_TEST_DEC1610.TABLESFIL is: /u05/dbdump/chala_feb2111.dmp Job "CNGSTORES_TEST_DEC1610"."TABLESFIL" successfully completed at 14:34:37
Can someone help me please how to export the structure of the table that begin with ST_LO_ % and ST_IL_ %.[oracle@VTL1253AD dbdump]$ expdp aa_test/aa_test directory=dbdump dumpfile=st_LO_IL_EMPTYTABLES.dmp logfile=st_LO_IL_EMPTYTABLES.log content=metadata_only job_name=aa_empty tables="ST_LO_%","ST_IL_%" Export: Release 10.2.0.1.0 - Production on Monday, 21 February, 2011 14:03:18 Copyright (c) 2003, 2005, Oracle. All rights reserved. Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production With the Partitioning, OLAP and Data Mining options Starting "AA_TEST"."AA_EMPTY": aa_test/******** directory=dbdump dumpfile=st_LO_IL_EMPTYTABLES.dmp logfile=st_LO_IL_EMPTYTABLES.log content=metadata_only job_name=aa_empty tables=ST_LO_%,ST_IL_% ORA-39166: Object ST_IL_% was not found. ORA-39166: Object ST_LO_% was not found. ORA-31655: no data or metadata objects selected for job Job "AA_TEST"."AA_EMPTY" completed with 3 error(s) at 14:03:24
Please help me.
Thank you and best regards,
Kahina Prasad.SUse a settings file, and you will have no problem with these backslashes to use on the command line:
oracle@:/home/oracle(o10)# more p.par include=table:" in (select table_name from all_tables where owner='SYSADM' and (table_name like 'PSACCESS%' or table_name like 'PSOPR%')) " oracle@:/home/oracle(o10)# expdp sysadm/****** parfile=p.par dumpfile=test3.dmp nologfile=y Export: Release 10.2.0.4.0 - 64bit Production on Monday, 21 February, 2011 12:33:37 Copyright (c) 2003, 2007, Oracle. All rights reserved. Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production With the Partitioning, Oracle Label Security, OLAP, Data Mining and Real Application Testing options Starting "SYSADM"."SYS_EXPORT_SCHEMA_02": sysadm/******** parfile=p.par dumpfile=test3.dmp nologfile=y Estimate in progress using BLOCKS method... Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA Total estimation using BLOCKS method: 21.06 MB Processing object type SCHEMA_EXPORT/TABLE/TABLE Processing object type SCHEMA_EXPORT/TABLE/GRANT/OWNER_GRANT/OBJECT_GRANT Processing object type SCHEMA_EXPORT/TABLE/INDEX/INDEX Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/CONSTRAINT Processing object type SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS Processing object type SCHEMA_EXPORT/TABLE/FGA_POLICY Processing object type SCHEMA_EXPORT/TABLE/TRIGGER Processing object type SCHEMA_EXPORT/TABLE/INDEX/FUNCTIONAL_AND_BITMAP/INDEX Processing object type SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/FUNCTIONAL_AND_BITMAP/INDEX_STATISTICS Processing object type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS . . exported "SYSADM"."PSOPRDEFN" 8.536 MB 49826 rows . . exported "SYSADM"."PSOPRCLS" 4.736 MB 242923 rows . . exported "SYSADM"."PSOPRALIAS" 1.964 MB 49908 rows . . exported "SYSADM"."PSOPRDEL" 630.0 KB 44517 rows . . exported "SYSADM"."PSACCESSPRFL" 6.226 KB 1 rows . . exported "SYSADM"."PSOPRALIASFIELD" 6.515 KB 10 rows . . exported "SYSADM"."PSOPRALIASTYPE" 6.765 KB 7 rows . . exported "SYSADM"."PSOPROBJ" 9.546 KB 144 rows . . exported "SYSADM"."PSOPRALSTYPLANG" 0 KB 0 rows Master table "SYSADM"."SYS_EXPORT_SCHEMA_02" successfully loaded/unloaded ****************************************************************************** Dump file set for SYSADM.SYS_EXPORT_SCHEMA_02 is: /appl/oracle/product/10.2.0/rdbms/log/test3.dmp Job "SYSADM"."SYS_EXPORT_SCHEMA_02" successfully completed at 12:34:35 oracle@:/home/oracle(o10)#
Replace the names of tables above with anything you want.
Nicolas.
-
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#CHDGJEGDConcerning
johnxjean -
teststand to the remote database connection
I have a test station in teststand running factory. I want to log/query a database located on a network server in my installation by ethernet. Can TestStand using its types of step address/access database this database for viewing and querying records?
TestStand features of database, including the types of step of database using Microsoft ADO/OLE DB layer and providers installed on a system. Microsoft has an ODBC provider, TestStand can talk to any remote database system that supports the technology of this software. Take a look at the help topic "TestStand Database Fundamentals" in the online help for more information on this. Suggestion of love to look at the example is right on.
Step TestStand database types are a way to access a database at a high level, but if you want to process the data in a more complex way, you can consider your connectivity database and processing in a code module using the programming language of your choice and call this code of TestStand module.
Maybe you are looking for
-
It's already happened and very frustrating... after the execution of the system tuner, I lost all my bacgrounds (I have three accounts of gmail), gadgets and cannot access my mails.
-
Dv4-1430us: lack of Base system device drivers
I just clean installed W7 Home Premeuim after a failed attempt of W10, it seems that I'm missing three "base system device drivers. I went to the HP page where the drivers are usually, but I don't see all the downloads. If the download page of is the
-
Re: Satellite L550 - imported into PowerPoint Photos are too dark
Having problems inserting JPG photos of 'Photos' Power point - they become much too dark after the transfer. Gamma-ing the JPG or upping lightness does not work. I imported the same impages using other PC and there is no problem with images in PowerP
-
I lost my cd now am havin problem with my sound system I opt to format my pc but I can't we allow a win7 as am a student do not want to use cracked and now I have no CD recovery pls I can possibly download this or any other way? Am in Africa and may
-
How can I change my current hotmail email address to a new hotmail email address
I would like to change/cancel my hotmail e-mail address of * address email is removed from the privacy * to * address email is removed from the privacy * and always keep the status of my account with my network of friends.