Update of the specific data of the schema in the remote databases.
I have same application running in places different, each with its own database (gr 10, 2). I want to find solutions to how can I change each database with the data in the other place so that my users of the application can check the status & reports based on data from other sites. There is no physical connectivity between databases in the form of network LAN or WAN.The only option, in my view, is to take backup at one location and updated at another location. But the problem is that the names of the diagrams and tables are the same on all sites, that is, the database is designed for Central connectivity to all locations. But after the design of the application, we are forced to use databases distributed without any connectivity between sites.
We cannot use direct import/export or impdb/expdb because the schema name and the tables are the same in all locations.
Is it possible to record/track DML statements on my specific sites with timestamp scheme so that these DML can be used as a source of data import. There are a lot of tables in my diagram so I need a solution more widespread rather than write triggers on each table.
I also checked Oracle Audit and I want some sort of solution so that I can manage without the support of DBA in each location.
If I reframe your question will be it seems like below:
User: UserA
Database: Db1
Location: Loc1
User: UserA
Database: Db1
Location: Loc2
You want to synchronize/keep the latest information in databases without:
1. connectivity.
2.Import/Export
3 oracle DBA
Right?
If Yes, then
DML trigger will fill a new table in the two locations, that will all the new values that a user made on one site. Now in the other place, this table will be sent to run a pl/sql block using this table and fill in the data.
On the other
What is your question, we need more details.
End if
Concerning
Girish Sharma
Tags: Database
Similar Questions
-
How or there is no model code keep update/sync the local database indexedDB for MySQL database online?
Unfortunately there is no direct connector for an application of WebWorks to a back-end database. You will need to do, is to have some middleware web server (Apache, Node.js, etc.) who manages a web service that you can make an HTTP request to and GET, POST, UPDATE, DELETE data. Middleware and then transmits commands to the back-end database and returns the results to the finished device.
-
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
-
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
-
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
-
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 -
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 -
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
-
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...
-
How to access the remote database by using express application server
I wan to access the database in one of my servers of laboratory since my laptop remotely. I could easily connect to the server when I use the LAN by simply giving the ip address. But it does not work when remote. I installed PuTTy to connect to the server (that I have), but now I want to access the specific request of this database in the lab server. Is it possible to do?
Any help would be appreciated.
Thank you
Hi 3030553,
3030553 wrote:
Please change your login username of "3030553" to something meaningful. Reference: Video tutorial how to change username available
I wan to access the database in one of my servers of laboratory since my laptop remotely. I could easily connect to the server when I use the LAN by simply giving the ip address. But it does not work when remote. I installed PuTTy to connect to the server (that I have), but now I want to access the specific request of this database in the lab server. Is it possible to do?
Your laptop must be in the lab server LAN network to access, or else you should have the VPN connection to the LAN in which the lab server exists.
Also to access objects of database in your schema to Application Express workspace, you can use the workshop of SQL as mentioned by Tommy or you can use Oracle SQL Developer, since you have the credentials for the schema to connect to and related IE required database server information full domain name / ip address of the server port on which the listener database service is running, database SID/database service name listening.
Kind regards
Kiran
-
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.
-
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 -
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
-
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.
Maybe you are looking for
-
Transfer from old office for Mac to new Mac Air
Hi, I just got a new Mac Air and have my old office for Mac on a hard drive. I am able to transfer to my new computer and re - install?
-
How to create an image of the hard drive on a PXI-8186
I have a PXI-8186. I want to make a backup copy of the current state of the hard disk of the controller. Is there a way to do this? I tried the Acronis software, but this controller may be to old for this. Another message similar to this is that o
-
Hi all I have a HP Compaq dx2300 I need to run a diagnotics on but don't have not CD. Someone at - it a link or somewhere I can get it?
-
I recently bought an Elitebook 8560w opportunity and installed 8.1 for WIndows and Linux in a dual-boot configuration. Using the laptop for weeks caused no problems at all. I used the display port on the screen on a TV 720 p to Samsung to mirror, so
-
Original title: help please if you can Im getting this error code: 80080005 and dt000 but I do not understand why or how he got that way please help?