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
Tags: Database
Similar Questions
-
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
-
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
-
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...
-
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 -
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.
-
Setting for the remote database ACS 5.2 problem
Hi all
I installed ACS 5.2 device and try to backup report database (MS SQL Server 2005) remotely using remote database settings.
But the database is empty, and the task in the Task Scheduler is failed.
So I check MonitoringAndReportingScheduler.log and found the log message in the attached file.
I try to find answer to Cisco community support, but found nothing.
But I googled an article almost the same condition as mine.
http://www.experts-exchange.com/Microsoft/development/MS-SQL-Server/SQL-Server-2005/Q_26931183.html
I wonder what the database configuration should I change to meet the requirement of this backup of report.
Because there is nothing on the database in the ACS configuration guide.
Is anyone successfully using this function?
What does ".
I changed my ranking of Latin SQL database SQL, and his work. "in the article mean?
Thanks in advance.
Hi, Mason,
It is very probably due to the CSCtk83179 ACS 5 export remote DB SQL view does not.
You must wait ACS patch 7 for ACS 5.2 or 5.3.
Cheers, Irina
---
PS: Please, note the useful messages!
-
The remote database for ACS 5.3 compatibility
Hi all
I'd like to check either Microsoft SQL Express 2012 is in working with ACS 5.3 remote database?
Thank you
Noel
It should work with both. I have seen a few cases for Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 with 64-bit operating system.
Jatin kone
-Does the rate of useful messages- -
Resolved - getting error when connecting to the remote database to the host
Hello
I try to connect to the remote form of database host and get error. Can someone please help.
I've seen a few threads about similar issues, but I am not able to solve this problem.
I use Oracle Apps 12.2.0, Linux 5.1, Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit, using SQL Developer to connect.
I am able to connect using SQL Developer in distance and using the same credentials in SQL Developer host, but in error
Status: Failure-Test failed: IO Error: Connection reset
The host
I am able to ping remote, but cannot tnsping
The tnsping error-
Use settings files:
C:\app\oracle\product\12.1.0\dbhome_2\NETWORK\ADMIN\sqlnet.ora
EZCONNECT adapter used to resolve the alias
Try to contact (DESCRIPTION = (CONNECT_DATA = (SERVICE_NAME =)) (ADDRESS = (PROTO
(COL = TCP)(HOST=192.168.1.102) (PORT = 1521)))
AMT-12547: TNS: lost contact
Here are more details
I have added the following in the TNSNAMES file. ORA file
SCREW =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.1.102)(Port= 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = SCREW)
)
)
I have added the following in the listener
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC1521))
(ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.1.102)(PORT = 1521))
)
)
Finally - the firewall is disabled in Linux Machine
Can you ping the server IP (or nomhote.nomdomaine) address of the client machine?
What is the error you get when you issue "tnsping SCREWS" of the client machine?
You have added the following entry to your client's tnsnames.ora file?
+++++++++++++++++++++
SCREW =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.1.102)(Port= 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = SCREW)
)
)
+++++++++++++++++++++
Can you reproduce the problem with sqlplus? If so, please see (11.5.10 news: run SQL * Net access for guests (Doc ID 291897.1)).
If the problem with SQL Developer only, please see (SQLDeveloper receives ' java.sql.SQLRecoverableException: IO Error: Connection reset "and ORA - 609 database alert (Doc ID 1483287.1)).
Thank you
Hussein
-
How to use refcursor type returned from the remote database in the local database
Can anyone say is how they use the refcursor use type returned from remote database in the local database using dblinks.See MOS ID 750126.1 doc ORA-24338 when trying to return a Refcursor over a database link.
-
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
Maybe you are looking for
-
For the last two day I did not got to the Thunderbird links to my web browser. I use the Google browser, it's with all my e-mail providers, Google, Yahoo and Windstream. I don't know when the update has been installed.
-
Manage multiple windows or applications
is there a way to have four apps display in the task view this quad of the screen instead of split the screen in half, it would be to divide the screen into four
-
Is there a setting from command line for Windows Media Player?
Could someone tell me please in the right direction for a set of command line for wmplayer settings?I use... .Wmplayer /play /playlist pA.wpl as an automatic start and play line RUN.Player starts and displays a list of PA on the screen but does not p
-
Help: Program changed by default for Internet Explorer, the .lnk files.
So yesterday, I did something stupid. I managed to change the default program for all my .lnk for Internet Explorer files. I am running Win 7 (64). When I double-click on any file on my desktop, it tries to open the file with Internet Explorer. It is
-
Unauthorized (unauthenticated user) able to connect to OBIEE
HelloEven if we access privilege answers to the home page of the user authenticated, any name of user and password can access the OBIEE homepage.It's annoying, because when an authenticated user logs on with a wrong password, he thinks that he has be