Error creating database link!
Dear all,I'm in a strange problem to connect to the database between the RAC and single Instance database. The two databases are 11 GR 2 and on Linux platform.
On a database that is CARS, my settings are as follows:
view the global_names parameter.
Value = TRUE
Select Rename global_name;
RACDB. DOMAIN.COM
Although I ran the race:
ALTER DATABASE RENAME GLOBAL_NAME to RACDB and bounce the database after this command, but still it shows RACDB. DOMAIN.COM
When I see the db_domain parameter
Value = (NULL)
tnsnames.ora is
GGBKP =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.20.182)(PORT = 1521))
(CONNECT_DATA = (SERVICE_NAME = GGBKP))
)
On the other server, my settings are as follows:
view the global_names parameter.
Value = TRUE
Select Rename global_name;
GGBKP
When I see the db_domain parameter
Value = (NULL)
tnsnames.ora is
RACDB =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.20.29)(PORT = 1521))
(CONNECT_DATA = (SERVICE_NAME = RACDB))
)
OK, now when I create the link DB from one server to another by using the command:
Server a
create database GGBKP link to connect to streamadmin identified by streamadmin using 'GGBKP ';
and run this query
Select sysdate dual@GGBKP it gives an error:
ORA-02085: database link GGBKP. DOMAIN.COM will connect to GGBKP
the second server
SQL > create database RACDB link to connect to streamadmin identified by streamadmin
2 using "RACDB;
Database link created.
SQL > select sysdate dual@RACDB;
Select sysdate from dual@RACDB
*
ERROR on line 1:
ORA-02085: database RACDB link connects to the RACDB. DOMAIN.COM
Where is the problem in the settings and how to get rid of this problem. I have to keep the overall name of TRUE because replication streams.
Kind regards
Imran
Probably that does not help.
The problem is on the server 1, Server 2 is OK and works as expected.
For some strange reason, server 1 still picks up "domain.com".
At this point, I would probably question sys.props$ (where it is stored) or consult the global_names view definition.
I would not immediately update sys.props$ with the correct value.
I would also like to run lsnrctl services: if properly configured global_name and service_name in lsnrctl match.
------
Sybrand Bakker
Senior Oracle DBA
Tags: Database
Similar Questions
-
Create database link between two databases?
Hi all
Can someone tell me how to do?
I have two databases in oracle 9i: 'mydb' & 'mydb1 '.
mydb contains a table 'tab1' with a single domain (of the int data type) and mydb1 contains a table "tab2" with two fields (int, char).
I tried to do this:
System is one of the usernames and another username is olapsys
Manager is the password of the system, and olapsys got the password = myolapsys
I tried to create a link, but it gave me an error:
CREATE DATABASE LINK mylink access the system identified by the Manager using "mydb.tab12";
then I tried running this query in olapsys:
Select * from tab12@mylink;
Error:
ORA-12154: TNS: could not resolve service name
Help, please.
Thank you and best regards,
LuckyCREATE DATABASE LINK mylink to connect to the system identified by the Manager using "local service alias ';
where local service alias is the name of the local service that you configured in the tnsnames.ora to connect to mydb1.
-
SP2-0640: not connected - create database link error Gateway
While trying to connect through the gateway SQL by using 'Create database link','m ' SP2-0640: not connected "error. Here are the details.
====================================================================
TNSNAMES.ora
dg4msql =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost) (PORT = 1521))
(CONNECT_DATA =
(Service_name = dg4msql))
(HS = OK)
)
====================================================================
LISTENER.ora
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = dg4msql)
(ORACLE_HOME = C:\product\11.2.0\tg_1)
(PROGRAM = C:\product\11.2.0\tg_1\bin\dg4msql)
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost) (PORT = 1521))
)
)
ADR_BASE_LISTENER = C:\product\11.2.0\tg_1
====================================================================
SQLNET.ora
# This file is actually generated by netca. But if customers can opt for
# install 'Software Only', this file does not exist and without the native
authentication #, they will not be able to connect to the database on NT.
SQLNET. AUTHENTICATION_SERVICES = (NTS)
NAMES. DIRECTORY_PATH = (TNSNAMES)
====================================================================
initdg4msql.ora
HS_FDS_CONNECT_INFO = sqlserverip, port / / PMDB
HS_FDS_TRACE_LEVEL = OFF
HS_FDS_RECOVERY_ACCOUNT = RECOVERY
HS_FDS_RECOVERY_PWD = RECOVERY
====================================================================
lsnrctl start outupt
The State of the application "dg4msql" UNKNOWN, has 1 handler for this service...
The command has been executed
====================================================================
tnsping output
Settings file that is used:
C: \ Product------11.2.0------tg_1------network-admin------sqlnet.ora
has been used TNSNAMES adapter to resolve the alias
Try to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = localhost) (PORT = 1521)) (CONNECT_DATA = (SERVICE_NAME = dg4msql)) (HS = OK))
OK (20 ms)
====================================================================
creation of link db output
SQL * more: Production release 11.2.0.2.0 on Lun Ott 8 12:03:08 2012
Copyright (c) 1982, 2010, Oracle. All rights reserved.
SQL > CREATE DATABASE LINK dblink PUBLIC CONNECT WITH As IDENTIFIED BY Manager1 USI
NG 'dg4msql ';
SP2-0640: not connected.most of the foreign bases are case-sensitive and default Oracle moves all uppercase. To keep the name of an object you should always be surrounded by double quotes and make sure tzhat you write the name exactly as it is defined in the foreign database, for example:
Select 'id' from 'TEST"@ln; -
Failed to create database link when the password has a special character
I am trying to execute the following statement in sqlplus
create alpha link database to connect to scott identified by tiger! using "db_alpha".
Note that the password of the account has an exclamation mark inside. the command fails. I tried to put the password in quotation marks (') and double quotes (""). Working the double quotes, but then the link does not work properly.
We are required to have a special character in our passwords... so, how can I get this special character in the password for the database link?
Thanks in advance,
DarrenDarren2 wrote:
#2 attempt:
SQL > create database link BLAH connect to user2 identified by 'tiger!' using 'BLAH ';
Created database link
SQL > salt {color: black} {color} ect {color: black} {color} * en {color: black} {color} om my{color:black}{color}_{color:black}{color}table{color:black}{color}@BLAH;
Salt {color: black} {color} ect * en {color: black} {color} om my{color:black}{color}_ta{color:black}{color}ble{color:black}{color}@BLAH
*
ERROR on line 1:
ORA-02085: link on the database of BLAH. AAA. BB. CCC. DDD connects to
DEVDB. AAA. BB. CCC DDD.For me, that makes no sense. If the link does not work... How did get the "invalid username/password" in the #1 attempt?
Learn about the GLOBAL_NAMES initialization parameter. Default GLOBAL_NAMES = TRUE, which means the database link is required to have the same name as the database in which it connects. Database name DEVDB link or define GLOBAL_NAMES = FALSE:
SQL> create user Darren2 2 identified by "tiger!" 3 default tablespace users 4 quota unlimited on users 5 / User created. SQL> grant create session to Darren2 2 / Grant succeeded. SQL> create table Darren2.tbl as select 'Darren2' name from dual 2 / Table created. SQL> create database link sol10@Darren2 2 connect to Darren2 3 identified by "tiger!" 4 using 'sol10' 5 / Database link created. SQL> create database link sol11@Darren2 2 connect to Darren2 3 identified by "tiger!" 4 using 'sol10' 5 / Database link created. SQL> select * 2 from tbl@sol10@Darren2 3 / NAME ------- Darren2 SQL> select * 2 from tbl@sol11@Darren2 3 / from tbl@sol11@Darren2 * ERROR at line 2: ORA-02085: database link SOL11.REGRESS.RDBMS.DEV.US.ORACLE.COM@DARREN2 connects to SOL10.REGRESS.RDBMS.DEV.US.ORACLE.COM SQL> select value from v$parameter where name = 'global_names' 2 / VALUE -------------------------------------------------------------------------------- TRUE SQL> select * from global_name 2 / GLOBAL_NAME -------------------------------------------------------------------------------- SOL10.REGRESS.RDBMS.DEV.US.ORACLE.COM SQL> alter session set global_names=false 2 / Session altered. SQL> select * 2 from tbl@sol10@Darren2 3 / NAME ------- Darren2 SQL> select * 2 from tbl@sol11@Darren2 3 / NAME ------- Darren2 SQL>
I don't have two databases, so in my sol10 database I create two database links sol10@Darren2 and sol11@Darren2 both pointing to itself (back to sol10 database). That's why I use qualifiers link db. The two links you connect as a Darren2 user with password Tiger!. The global database name is sol10 and initialization of setting global_names = true. As you can see what global_name (sol10) corresponds to the name of the link in sol10@Darren2 db (again, the link name is sol10 and Darren2 is qualifying link) select vai db link works OK. But the sol11@Darren2 link fails because the name sol11 link does not match the name db global sol10. However, as soon as I change global_names false, sol11@Darren2 works fine. It will be useful.
SY.
Published by: Solomon Yakobson on January 1st, 2009 08:41
-
A question about the CREATE DATABASE LINK PUBLIC and ORA-12154 error
Hi all
I have a problem on the public database link creation and I would be grateful if you could kindly give me a helping hand. I have the following connection settings in my
tnsnames.ora file:
Having the above mentioned parameters, I can connect to this remote database directly in a SQL * more shell:... DGPAPROD.WORLD = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (COMMUNITY=tcp.world) (PROTOCOL=TCP)(HOST=ORASR001)(PORT=1521) ) ) (CONNECT_DATA = (SID = DGPAPROD)) ) ...
It works pretty well and the connection is established without any problem.$ sqlplus username/[email protected]
Now, what I want to do is to create a public database of this remote database link to avoid the user/connection of switch for the visualization of the
the content of this database. I proceeded in line with the syntax indicated in the Oracle online documentation:
http://download.Oracle.com/docs/CD/B28359_01/server.111/b28286/statements_5005.htm#SQLRF01205
This is why I run the following to create a public database link
Apparently there is no error and the link is created successfully. However, it cannot resolve the remote host and every time I run this queryCREATE PUBLIC DATABASE LINK SR001_dblink CONNECT TO user IDENTIFIED BY password USING 'DGPAPROD.WORLD';
(myenterprise is the name of a table in the remote database)
What causes this problem?SELECT * FROM myenterprise@SR001_dblink ERROR at line 1: ORA-12154: TNS:could not resolve the connect identifier specified
Thanks in advance,
Kind regards
DariyooshYou must have defined DGPAPROD. WORLD in tnsnames.oar on the server where DB is runnig.
-
Deployment of mapping a error: duplicate database link exists
Hello world
If all goes well, it is a simple question. I have worked with OWB 10 g 2 for some time now without any problems. My project finished and I went to a different environment of OWB, always 10 gr 2 and now my mapping deployments are errors during deployment. Whenever I try to deploy the mapping, OWB also tries to create the database link, regardless because it already exists. It does not deploy the database link, but mapping deploys successfully, however. If I drop the database connection, and then to deploy a map there is no error but then if I deploy a second mapping back again (no surprise here).
I tried to deploy the connector by assigning 'replace' and click on deploy. Which was fine, but according to, OWB, even though I just replaced the existing link DB, it has not yet see it was created. OWB always considered this connector as 'new '.
Anyone know what I need to do for OWB to stop trying to deploy the DB link with each mapping? How can I tell him that the DB connection exists and that it is correct?
Thank you!
-JoeHello
I had the same question a few days ago... I'll tell you how I solved it.
I think the real problem is that the link never gets marked as deployed => therefore, it is deployed with each mapping is to use it!
You can even try to deploy it on its own and deploy process completes without error, but it is not marked as deployed...
Why the link can't be marked as deployed? Whence the db_link?
The link points to a location where you dragged a table (or any object) on your map.
In my case, the location was first created and saved by another user before starting the development of a project (with a new user).
I recorded the location with the original user and he scored again with my user that I could deploy and get marked accordingly.
It is never apperead in my mapping deployments.Hope, I've been pretty clear... and useful!
Joan.
-
Layout error creating database clone on the same windows machine.
I am tring to create the database clone on the same machine with rman.
I made after the steps and get below error.
(1) service created for clone
2) had full hot backup with rman of primary DB(*.db_name='PROD')
(3) startup pfile = 'initclone.ora' nomount; -> (* .db_name = 'PROD' and * .db_unique_name = "clone" parameter)
RMAN 4) > restore controlfile to ' C:\oracle\product\10.2.0\flash_recovery_area\PROD\BACKUPSET\2010_08_29\O1_MF_NCSNF_TAG20100829T174218_67NMPW8D_. BKP';
(5) sql > alter the editing of the database;
6)
RMAN > run {}
the value of newname for datafile 1 to ' c:\clone\SYSTEM01. DBF';
the value of newname for datafile 2 to ' c:\clone\UNDOTBS01. DBF';
the value of newname for datafile 3 to ' c:\clone\SYSAUX01. DBF';
the value of newname for datafile 4 to ' c:\clone\USERS01. DBF';
the value of newname for datafile 5 to ' c:\clone\EXAMPLE01. DBF';
restore the database;
switch datafile;
}
(7) SQL > restore database using backup controlfile;
ORA-00279: change 796656 September at 2010-08-29 17:42:19 needed to screw 1 ORA-00289: suggestion:
C:\CLONE\ARCH\CLONE\ARCHIVELOG\2010_08_29\O1_MF_1_27_%U_. ARC
ORA-00280: change 796656 thread 1 is in sequence #27
Specify the log: {< RET > = suggested |} Filename | AUTO | CANCEL}
C:\clone\arch\CLONE\ARCHIVELOG\2010_08_29\O1_MF_1_27_67NMSJ5Z_. ARC
ORA-00279: change 797296 September at 2010-08-29 17:44:40 needed to screw 1 ORA-00289: suggestion:
C:\CLONE\ARCH\CLONE\ARCHIVELOG\2010_08_29\O1_MF_1_28_%U_. ARC
ORA-00280: change 797296 thread 1 is in sequence #28
ORA-00278: log file ' C:\clone\arch\CLONE\ARCHIVELOG\2010_08_29\O1_MF_1_27_67NMSJ5Z_. ARC' is no longer necessary for this recovery
Specify the log: {< RET > = suggested |} Filename | AUTO | CANCEL}
C:\clone\arch\CLONE\ARCHIVELOG\2010_08_29\O1_MF_1_28_67NMSL6C_. ARC
ORA-00279: change 797301 September at 2010-08-29 17:44:42 necessary to screw 1 ORA-00289: suggestion:
C:\CLONE\ARCH\CLONE\ARCHIVELOG\2010_08_29\O1_MF_1_29_%U_. ARC
ORA-00280: change 797301 thread 1 is in sequence #29
ORA-00278: log file ' C:\clone\arch\CLONE\ARCHIVELOG\2010_08_29\O1_MF_1_28_67NMSL6C_. ARC' is no longer necessary for this recovery
Specify the log: {< RET > = suggested |} Filename | AUTO | CANCEL}
C:\clone\arch\CLONE\ARCHIVELOG\2010_08_29\O1_MF_1_29_67NN4WJD_. ARC
ORA-00279: change 797828 September at 2010-08-29 17:50:44 needed to screw 1
ORA-00289: suggestion:
C:\CLONE\ARCH\CLONE\ARCHIVELOG\2010_08_29\O1_MF_1_30_%U_. ARC
ORA-00280: change 797828 thread 1 is in sequence #30
ORA-00278: log file ' C:\clone\arch\CLONE\ARCHIVELOG\2010_08_29\O1_MF_1_29_67NN4WJD_. ARC' is no longer
necessary for this recovery
Specify the log: {< RET > = suggested |} Filename | AUTO | CANCEL}
C:\clone\arch\CLONE\ARCHIVELOG\2010_08_29\O1_MF_1_30_67NN9W5F_. ARC
ORA-00279: change 799046 September at 2010-08-29 17:53:23 necessary to screw 1
ORA-00289: suggestion:
C:\CLONE\ARCH\CLONE\ARCHIVELOG\2010_08_29\O1_MF_1_31_%U_. ARC
ORA-00280: change 799046 thread 1 is in sequence #31
ORA-00278: log file ' C:\clone\arch\CLONE\ARCHIVELOG\2010_08_29\O1_MF_1_30_67NN9W5F_. ARC' is no longer
necessary for this recovery
Specify the log: {< RET > = suggested |} Filename | AUTO | CANCEL}
She asks more of files, but in my primary DB, I have files not more arch.
I have also generated new arc with "alter system archive log courses;" and applied but still getting the same error
My primary database is in working condition and I can't stop it and I have in the file initora clone.
Please suggest...Gour wrote:
Still getting the same errorSQL > restore database using backup controlfile;
ORA-00279: change 799046 September at 2010-08-29 17:53:23 necessary to screw 1
ORA-00289: suggestion:
C:\CLONE\ARCH\CLONE\ARCHIVELOG\2010_08_29\O1_MF_1_31_%U_. ARC
ORA-00280: change 799046 thread 1 is in sequence #31Specify the log: {
= suggested |} Filename | AUTO | CANCEL}
Cancel
Cancelled media recovery.
SQL > ALTER DATABASE OPEN RESETLOGS;
ALTER DATABASE OPEN RESETLOGS
*
ERROR on line 1:
ORA-01113: file 1 needs media recovery
ORA-01110: data file 1: ' C:\CLONE\SYSTEM01. DBF'Try again, after step 5 cross rman
6)
RMAN >
Catalogue start with "C:\oracle\product\10.2.0\flash_recovery_area\PROD\archive_logfullparh";
Run {}
the value of newname for datafile 1 to ' c:\clone\SYSTEM01. DBF';
the value of newname for datafile 2 to ' c:\clone\UNDOTBS01. DBF';
the value of newname for datafile 3 to ' c:\clone\SYSAUX01. DBF';
the value of newname for datafile 4 to ' c:\clone\USERS01. DBF';
the value of newname for datafile 5 to ' c:\clone\EXAMPLE01. DBF';
restore the database;
switch datafile;
recover the database;
ALTER database open resetlogs;
}Published by: Alex on August 29, 2010 06:49
-
Error creating database of Essbase Hyperion Planning
Hello
While creating the database Essbase Database 'manage' in Hyperion Planning, I get the following error:
com.hyperion.planning.olap.EssbaseException: account (1060000)
It gets stuck to the addition of Dimensions.
I tried to reconfigure the planning, but not luck.
My relationship is MS SQL Server 2005 and the Essbase and Shared Services are on a Linux machine.
I get the following error in the planning log
'
[November 12, 2009 10:50:41]: Propegating external event [FROM_ID: class 68b6dbf1: com.hyperion.planning.sql.HspLock Type of the object of the class:-1 primary key: 50001]
[November 12, 2009 10:50:41]: cube processing: Plan1
[November 12, 2009 10:50:41]: properties of system setting CFG for the Dimensions of the attribute
[November 12, 2009 10:50:41]: adding dimension: account
[November 12, 2009 10:50:41]: closing of contours
com.hyperion.planning.olap.EssbaseException: account (1060000)
at com.hyperion.planning.olap.HspEssbaseOutlineAPI.EssAddMemberEx (Native Method)
at com.hyperion.planning.olap.HspCubeRefreshTask.addDimension (unknown Source)
at com.hyperion.planning.olap.HspCubeRefreshTask.addDimensionsAndMembers (unknown Source)
at com.hyperion.planning.olap.HspCubeRefreshTask.buildOutlines (unknown Source)
at com.hyperion.planning.olap.HspCubeRefreshTask.run (unknown Source)
at com.hyperion.planning.HspJSImpl.runCubeRefresh (unknown Source)
at com.hyperion.planning.HyperionPlanningBean.runCubeRefresh (unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
to sun.rmi.transport.Transport$ 1.run(Transport.java:153)
at java.security.AccessController.doPrivileged (Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466)
to sun.rmi.transport.tcp.TCPTransport$ ConnectionHandler.run (TCPTransport.java:707)
at java.lang.Thread.run(Thread.java:595)
'
Thanks for your help.
Published by: user524093 on November 12, 2009 16:38Have you tried to restart the services and give it a try?
What version of Essbase/Planning are you on?
If the name of your server Essbase has more than 30 characters, please use NODENAME with the short server name.
-
Create the link of database error
Hi all
I am trying to create a database link (developer both SQL and Sql * more) and I get the error ORA-00933: SQL not correctly completed command.
Here is the statement:
CREATE DATABASE LINK msrtp CONNECT TO msrtp_user IDENTIFIED BY 62ROLDS USING msrtp;
Yes, the global database name is msrtp and I created links db without any problem.
The problem, it's because the password begins with a number. I have no control on the password and can not change. I tried enclosing in single and double quotes, but it does not work. Is there one way around this other than to change the password?
Oracle 10g
Thank you.Try to put the password in quotation marks. I created a link using quotes around the password and I was able to choose to use it. With 11g and passwords case-sensitive using double quotes may be necessary at least for the mixed case passwords.
HTH - Mark D Powell.
-
How to create the database links
Hello
We have two databases on two servers differenet and we want both of the databases to be synchronized and application runs only on a single server.
It is possible through links DB if yes then how.
If a better solution than DB links is pl tell.Hello
Edit the tnsmaes.ora file and add the entry to the database and verify the connection using tnsping .if connection is ok and then create a database link in oracle
CREATE DATABASE LINK link_name - name of the link
CONNECT username - user name
IDENTIFIED BY password - password of the user
With the HELP of "Database_sid" - name of the databaseCreated database link
Select * from owner.table_name @ link_name
-
database link is is created with incorrect password
I have an A database is "sec_case_sensitive_logon" is set to true. Which means that I can open a session to the db using something as scott/tiger but not scott/TIGER.
I have an another data base B which hosts all of my apex applications. Here I am trying to create a link of database data. Even if I am able to create the link very well using a sql statement or using APEX object browser "create"-> "database link", in the end when I test the connection it gives the name of user and password invalid.
I think it's due to the APEX, still using the uppercase version of the password when creating the db connection IE. SCOTT/TIGER, which will not work.
Can anyone provide guidance on how I can fix this?Use "" around your password in the definition of link
-
Public database link does not work
Hello
I want to create a link from public database between 2 server in a different physical location, but in an intranet. Once I created the public database link... I keep having this error
ORA-12154: TNS: could not resolve service name
12154 00000 - "TNS: could not resolve the connect identifier specified.
*(Server 1-German-11gR2) *.
TNS:
Server1 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP) (HOST = 178.44.44.45)(PORT = 15210))
)
(CONNECT_DATA =
(SID = server1)
(SERVER = DEDICATED)
)
)
* Server (2-Malaysia-9iR2). *
AMT:
Server2 =
(DESCRIPTION =
(FAILOVER = ON)
(LOAD_BALANCE = OFF)
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP) (HOST = 178.44.44.35)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP) (HOST = 178.44.44.81)(PORT = 1521))
)
(SDU = 32777)
(CONNECT_DATA =
(SERVICE_NAME = PROD_server2)
)
)
I just want to create a database link course where Server 2 can enter the data on server 1, so I create my link database to Server 2. However, I always saw the problem. The TNSi under here are sample test, but it is working very well in here when connect you using the sql and sql navigator developer. (I think that nothing wrong with the tns) but is somehow the error message given TNS: could not resolve service name. So I don't really know what has gone wrong... PLEASE HELP ~ ~
~ Vincent.Hello
If you create the link db on server 2 so you need a tnsnames.ora entry that points to the server 1.
You should have an entry in the file tnsnames.ora on server - 2Server1 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP) (HOST = 178.44.44.45)(PORT = 15210))
)
(CONNECT_DATA =
(SID = server1)
(SERVER = DEDICATED)
)
)then create the database on server 2 - link
CREATE DATABASE LINK PUBLIC 'server1_schemaA '.
CONNECT to schemaA
IDENTIFIED BY password
Using "Server1."Kind regards
Mike -
Db_domain and database links
Hi all
I have some problems and can not get rid of them, so if someone could help me...
Well, I use 10.2.0.5 and try to do a replication of flow between 2 databases (this is not the topic here).
I found my replication could not work due to the source database rename: there is no name domain appended to the end...
I don't know why, it's an old database and I can't change that.SQL> select * from global_name; GLOBAL_NAME -------------------------------------------------------------------------------- HARPTEST SQL> show parameter db_domain; NAME VALUE -------------------------------- ------- ------------------------------ db_domain .WORLD
So now, as you can expect, while trying to make a database of my slave to this database link, I encounter errors:
This is normal behavior, as I do not give db_name added to my dblink, it adds the local domain. But then, with my setting GLOBAL_NAMES set to TRUE, I run an error:SQL> create database link harptest connect to streamsadmin identified by xxxxx using 'harptest'; SQL> select * from dba_db_links; OWNER DB_LINK USERNAME HOST CREATED ------------ ------------------------ ------------ ------------ ------------ STREAMSADMIN HARPTEST.VOODOO STREAMSADMIN harptest 30/03/12
Of course, I could set the GLOBAL_NAMES of FAKE, but this isn't a solution because I'm having the same problem with my capture process.SQL> select * from dual@harptest; ERROR at line 1: ORA-02085: database link HARPTEST.VOODOO connects to HARPTEST
I try to disassemble the db_name of my line (put in a string of length zero), bounced back to the database, but the local db_domain is always attached to my name db_link. I also tried to rename the global_name of my line (quite wildly with an "global_name update" or "accessories$ '), but still the same.
Do you know how I could connect to a database without domain name in its global_name?
Thanks for any help!Hello;
If you specify only the name of the database, then the field of the database to the Oracle connection string to create a full service name.
This note of Oracle should give the options available:
Create the link of database without end domain name [ID 462024.1]
Best regards
mseberg
-
strange problem with the database link
Hello world
I have a strange problem with the link of database in Oracle 11 g Express Edition;
There are two computers: computer-server and the client computer. Tnsnames.ora are the same on both computers IE.
CT =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = krzysztof) (PORT = 1521))
)
(CONNECT_DATA = (SERVICE_NAME = XE)
)
)
I created the database link:
Create database link zdalny
Connect to < user_id > identified by < password >
using "CT".
Customer cannot connect with server when I do not use above the command. But when I change 'use' for using "krzysztof:1521" or by using "krzysztof" or "server IP:1521" - everything is ok.
Why I ask. Because in all the materials that I read about Oracle command with the help of "CT" should work correct. But there is no. Do you know why?
Thanks in advance and apologize me for my English.
Rgds
KrzysztofHere's the tnsnames of your server, but to connect to the oracle server db (any client or to another instance of db oracle), you must install oracle client.
However, in your condition, you want to connect the DB1 Oracle OracleDB2 using a link db, I'm right? In this case you should always set the entry in the tnsnames.ora
To verify that you can connect to Oracle DB2 from DB1 Oracle, you can use tnsping in the command line.
In your casec:\tnsping CT
Krzysztof Szymaniak wrote: CT =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = krzysztof) (PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = XE)
)
)Check your tnsnames entry in the machine, you are trying to connect to. And check if the tnsping is successful.
Sometimes the error message says not everything, which means that you need to troubleshoot yourself and learn from the experience.
Always in the opposite case, refer to the documentation.See you soon.
Published by: Spongebob December 14, 2011 09:30
-
I read that it is possible to create a private database link and set up a public synonym to the private database link. But when I try it doesn't work. Is there another way to do this?
My goal is to have the private database link and private synonyms exist in a single schema and have only certain users have access to. Is there another way to solve this problem without setting a private database synonyms and additional link in several patterns?
Thank you
VioletViolet says:
I understand that this error occurs because the database connection is private. This suggests that this scenario is not possible after all?Views + grants:
SQL> connect scott@orcl Enter password: ***** Connected. SQL> create database link sol10_private connect to scott identified by tiger using 'sol10'; Database link created. SQL> create public synonym sol10_private for v$database@sol10_private; Synonym created. SQL> create user u1 identified by u1; User created. SQL> grant create session to u1; Grant succeeded. SQL> select name from v$database; NAME --------- ORCL SQL> select name from v$database@sol10_private; NAME --------- SOL10 SQL> select name from sol10_private; NAME --------- SOL10 SQL> connect u1@orcl Enter password: ** Connected. SQL> select name from sol10_private; select name from sol10_private * ERROR at line 1: ORA-02019: connection description for remote database not found SQL> connect scott@orcl Enter password: ***** Connected. SQL> drop public synonym sol10_private; Synonym dropped. SQL> create or replace 2 view sol10_private_vw 3 as 4 select * 5 from v$database@sol10_private; View created. SQL> grant select on sol10_private_vw to u1 2 / Grant succeeded. SQL> create public synonym sol10_private for sol10_private_vw; Synonym created. SQL> select name from sol10_private; NAME --------- SOL10 SQL> connect u1@orcl Enter password: ** Connected. SQL> select name from sol10_private; NAME --------- SOL10 SQL>
SY.
Maybe you are looking for
-
Profile completeness began 80percent
Please help me
-
can not insert tray multifunction color HP Laser Jet Pro 200
I'm working on a double-sided on 8.5 "x 11.0" document. The printer does a fabulous job but I had to insert another stack of documents and when I tried to close the entry door it just stopped in his tracks and hosts about 3 inches. Paper is inserted
-
HP Pavilion 1209sz g6: laptop does not turn on
Hello My HP Pavilion g6-1209sz lights. When I press the power button, this will happen: -I can hear the computer start, but the fan won't move; -l' screen stays black -the led power button on and near the power adapter is turned on (white), the led o
-
G6-2005ax Pavilion: Bluetooth auto turn off HP Pavilion g6-2005ax
I have a HP Pavilion g6-2005ax with 10 64-bit windows. After the upgrade I have problems with the software resets. For example. The bluetooth is disabled automatically. When I enable it and restart the bluetooth system is disabled again. I want to kn
-
This copy of Windows did not validate Windows.
I got a pc from a friend of my brothers. It is free OF THE discs, but had Windows XP Pro installed. Needless to say I got it at low cost. I recently bought an Internet access and began installing updates from Windows Update. He changed to update Micr