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;

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,

    Lucky

    CREATE 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.

  • 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,
    Darren

    Darren2 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

  • ORA-01017: name of user and password invalid. connection refused - Database Link

    Hi guys,.

    Could you help me, I have a problem connecting to a different database using the database link:

    * 1. I have added in the database 'customer' DEV2 tnsnanes.ora *.

    DEV =
    + (DESCRIPTION = +
    + (ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.100.85)(PORT = 1521)) +.
    + (CONNECT_DATA = +
    + (SID = DEVDB) +.
    +)+
    +)+

    * 2. I tested my connection using tnsping *.

    Oracle@dev > tnsping dev

    AMT Ping utility for Linux: Version 10.2.0.1.0 - Production on July 10, 2010 14:35:35

    Copyright (c) 1997, 2005, Oracle.  All rights reserved.

    Use settings files:
    +/opt/Oracle/product/10.2/Db_1/network/admin/SQLNET.ora+


    TNSNAMES adapter used to resolve the alias
    Try to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.100.85)(PORT = 1521)) (CONNECT_DATA = (SID = DEVDB)))
    OK (0 msec)
    Oracle@dev >

    * 3. In SQLPLUS of DEV2 I connect to my database using the tnsnames entry *.

    SQL > conn devuser/pwd001@dev
    Connected.

    * 4. I then create a database of link.*

    SQL > Create Database Link dev_Link
    + 2 Connect devuser +.
    + 3 identified by pwd001 +.
    + 4 using "DEV"; +

    Database link created.

    SQL >

    * 5. When I try to connect to the database using the database link, I get an error, but I'm sure that the password and user name are ok.*

    SQL > select * from global_name@dev_link;
    Select * from global_name@dev_link
    *+
    ERROR on line 1:
    ORA-01017: name of user and password invalid. connection refused
    ORA-02063: preceding the line of DEV_LINK


    SQL >


    What could be wrong...?

    Try to connect to the database via SQLPlus target using the tnsnames.ora entry: sqlplus bob@remote.

    If the target db is 11g, then breaking the password may be the matter. Try placiing the password in quotes when you create the database link.

    HTH - Mark D Powell.

  • I use MSN Explorer to my email. It does not connect and I get error code ox80072eff

    I use MSN Explorer to my email.  It does not connect and I get error code ox80072eff.  What can I do to fix this?

    Hi JoshKimbell,

    Please see the next Windows Live Forums thread:

    http://windowslivehelp.com/thread.aspx?ThreadId=c51f5e01-f5c4-4ec5-B470-8b0058f5f980

    If you continue to have problems, please repost your question on the following link:

    http://windowslivehelp.com/forums.aspx?ProductID=1

    Thank you!

  • 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

  • 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:
    ...
    DGPAPROD.WORLD = 
         (DESCRIPTION = 
           (ADDRESS_LIST = 
            (ADDRESS = (COMMUNITY=tcp.world)
              (PROTOCOL=TCP)(HOST=ORASR001)(PORT=1521)
             ) 
           )
           (CONNECT_DATA = (SID = DGPAPROD))
        )
    ...
    Having the above mentioned parameters, I can connect to this remote database directly in a SQL * more shell:
    $ sqlplus username/[email protected]
    It works pretty well and the connection is established without any problem.

    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
    CREATE PUBLIC DATABASE LINK SR001_dblink CONNECT TO user IDENTIFIED BY password USING 'DGPAPROD.WORLD';
    Apparently there is no error and the link is created successfully. However, it cannot resolve the remote host and every time I run this query
    (myenterprise is the name of a table in the remote database)
    SELECT *
    FROM myenterprise@SR001_dblink
    
    ERROR at line 1:
    ORA-12154: TNS:could not resolve the connect identifier specified
    What causes this problem?

    Thanks in advance,


    Kind regards
    Dariyoosh

    You must have defined DGPAPROD. WORLD in tnsnames.oar on the server where DB is runnig.

  • Public connected user database link creation

    Hello, DBA

    I tried to create the user database link connected audience.
    I have two databases (orcl, orcltest)

    Orcltest database, I created dblink

    SQL > grant create public database to u1 link;
    Grant succeeded.

    SQL > conn u1
    Enter the password:
    Connected.

    SQL > create sequoia link of public database using "orcl".
    Database link created.


    In orcl, I tried to access

    SQL > select * from u1.tab1@redwood;
    Select * from u1.tab1@redwood
    *
    ERROR on line 1:
    ORA-02019: description of the connection to the remote database not found

    QUESTION: what is the error?
    Note: tns, earphone works very well. No problems.
    Prod: 1 0.2.0.4.0
    OS: rhel 5.1

    Thanks in adnvance...

    Hello

    Orcltest database, I created dblink

    SQL > grant create public database to u1 link;
    Grant succeeded.

    SQL > conn u1
    Enter the password:
    Connected.

    SQL > create sequoia link of public database using "orcl".
    Database link created.

    Here, you create a DBLINK on the ORCLTEST to the ORCL database, sort of source database is ORCLTEST and target is ORCL.

    In orcl, I tried to access

    SQL > select * from u1.tab1@redwood;
    Select * from u1.tab1@redwood
    *
    ERROR on line 1:
    ORA-02019: description of the connection to the remote database not found

    It will not work because you created the dblink on the source database, which is ORCLTEST.

    DBLINKS give you a way to access resources (tables, indexes, packages, etc.) in a remote database.

    What you do is:

    1. create a dblink on ORCLTEST. This dblink will provide access to ORCL via the ORCLTEST.

    2 instead of this, you you connect directly to ORCL. That won't work, your DBLINK is not here, you can create another one here pointing to the ORCLTEST.

    DBLINKS act as a bridge, a connection between two databases. They are only available in the source database to create a link to a database remotely (target).

  • Vista SP2 has not installed recovery changes. Error e000023f.__Please help computer is running fine now.

    Hi, I tried to install SP2 for Vista pack recently without success. Basically, I'll install and my computer stops then starts up and when installing it will cancel and say changes in recovery does not summers.

    When my computer load back to the top of the screen and the icons have become much bigger and my computer seems to be missing a lot of pilots.

    I tried to disable all the startup items.

    I tried to uninstall my Norton 360 program.

    Stand-alone setup I tried and it also does the same thing.

    Ran sfc/scannow, and it has detected an error and fixed it but no difference.

    I tried to run the system preparation tool, but loading upward it checks updates and asks me to install an update first. When you try to install the update, it happens at the same point every time and just hangs. If I wait long enough he will say: impossible to install and it is that I get.

    When I check history the next error code update to SP2 install is e000023f. I tried to check whether that SP2 was installed in part. When I go in the installed updates it have SP2 listed, but when I right click on it gives me no option to delete so I guess it was not installed. By going to computer/properties also confirmed that it is still SP1.

    Any help would be greatly appreciated that I like this update because my computer doesn't seem to be good at all currently underway. It takes more than an hour now to intall minor updates.

    Help, please.

    Thank you

    Mark

    If N360 is no longer installed (and before you reinstall it):

    1. download the Norton Removal Tool, save it to your desktop: ftp://ftp.symantec.com/public/english_us_canada/removal_tools/Norton_Removal_Tool.exe

    2. close all open applications (that is, anything with an icon on the taskbar).

    3. click right on the file saved in #1 above, and then select run as administrator to run the utility. DO TAP not your keyboard until the race ends, then restart.

    IMPORTANT! Should not connect your computer to the internet or any network without a fully functional anti-virus application & completely updated installed and an active firewall!

    Your misguided (IMHO) use of System Mechanic may have caused your problems. If you think your registry needs to "clean up" or "repaired" and need more convincing that it doe NOT, read http://aumha.net/viewtopic.php?t=28099 and draw your own conclusions.

    ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft

  • Laptop does not connect to the internet. error cannot display Web page

    Original title: laptop does not connect to the internet. How can I fix it?

    I'm trying to get my laptop to connect to internet, but it will not. It keeps telling me that it cannot display the Web page. The wireless connection is the link and he sees the laptop, but it's like he goes. How can I fix it? Help!

    Hello

    1. Have you tried using anythird party web browser to connect to Internet?
    2. You use Internet Explorer to surf the Internet?

    If you receive error message cannot display Web page in Internet Explorer, then you can check the link below to fix the problem.

    "Internet Explorer cannot display the webpage" error when you view a Web site in Internet Explorer

    http://support.Microsoft.com/kb/956196

    Note:

    Reset the Internet Explorer settings can reset security settings or privacy settings that you have added to the list of Trusted Sites. Reset the Internet Explorer settings can also reset parental control settings. We recommend that you note these sites before you use the reset Internet Explorer settings

  • When you try to schedule a task in XP, make a mistake "the new task could not be created the specific error is 0x80070005: access is denied."

    My

    System Type X 86-based PC
    Processor x 86 Family 6 Model 23 Stepping 10 GenuineIntel ~ 3324 Mhz
    A05 BIOS Version/Date Dell Inc., 07-31-2009
    SMBIOS 2.5 version

    I'm trying to schedule a new task I get this error

    The new task could not be created specific error is 0x80070005: access is denied

    I am an administrator for this computer and I am connected to the office network.

    I downloaded a patch KB904423, but it tells me that the installer has detected that the SP of the system version is newer the updte I am applying, I did not need to install this update

    Is there any fix for this?

    Thank you

    Hi dgxp64,

    ·         The computer is on a domain network?

    Method 1: Temporarily disable the antivirus on the computer program and check if it helps. If it works, you may need to check the settings of the program.

    Note: Check that you activate your anti-virus protection on the computer back after you complete these steps. It is not recommended to disable these settings on the computer. It's just to solve the problem.

    Method 2: Check to see if this article helps you.

    How to solve the scheduled tasks in Windows XP and Windows Server 2003

    Method 3: We will grant permission for the C:\Users folder and check if it helps.

    How to set, view, change, or remove special permissions for files and folders in Windows XP

    If the computer is on a domain network you can post your query on the TechNet Forums.

    Windows XP IT Pro category

  • Z30 Z30 blackBerry does not load unless it is rebooted and does not connect to the link

    My Z30 will load only if it is connected to an AC charger and the Z30 is restarted. My Z30 does not connect to my PC via USB. My Z30 running OS 10.3.2.2639. I did a soft reset (how I learned that it charges a restart), and recently completed a wipe of the device security. I bought the phone on October 5, 2014, and now is not working today. My dealer I come to, their store policy is only good for 30 days after purchase and referred me to go look at the manufacturer's warranty. The manufacturer's warranty is for 1 year. I just went this year a few weeks ago. Doubly upset right now!

    Hmmm... except maybe Pinterest, it is difficult to infer any specific causal event of this sequence; I hope that you have already tried to remove this app to see if things have improved. But before more destructive measures, please run the BBVE on the device to see if it provides any useful information:

    Also, that you take a LINK backup in order to recover? For example, if you know your configuration selections, the home screen configuration, add apps, claim, etc., then you can skip the backup and reconfigure simply from scratch. But note that it also requires that use you the best practice method for Contacts and calendar, in that your device does not have the data source 'master' for those, but rather some services online (e.g., Google, Outlook.com, etc.) is the master, and so when you reconfigure these data will simply restore servers, no LINK restore to get the data on your device.

    Let us know.

  • My Windows 7 VPN does not connect. It is error 800. Help, please!

    Hello. I am trying to connect to my VPN from a new location. It works very well in the past, but when trying to connect now it gives me error 800. I think it may have something to do with the internet connection at home that I am trying to connect from. I have to configure their router or something to allow my VPN to connect?

    The error reads as follows:
    Connecting to remote.camposlaw.net using "WAN Miniport L2TP"...
    Error 800: The remote connection has not been because attempts VPN tunnels failed. The VPN server is maybe inaccessible. If this connection tries to use an L2TP/IPsec tunnel, the required security settings for IPsec negotiation is may not be configured correctly. If you continue to receive error messages, you can enable logging for analysis.
    Thanks in advance for your help.

    Hi KailiChristensen,

    Thanks for posting in the Microsoft Community.

    Since you are facing a problem with the VPN connection, the question you posted would be better suited for the IT Pro TechNet public. I would recommend posting your query in the TechNet Forums to get help:

    Windows 7 networking TechNet Forums

  • eFax: not connected to the internet error

    I have a Photosmart 7510, running on Windows 8 (which shouldn't matter, since my question).  All internet connections are fine, except eFax custody claiming that I am not connected to the internet.  I have tried to change the DNS by hand, reset the cable modem, router, and web services and even to set the printer to the factory settings.  Nothing works.

    Hello

    Try to use another DNS such as Google Public DNS server and check to see if that can help you:

    Set the DNS server in the printer as follows:

    Primary: 8.8.8.8

    Secondary: 8.8.4.4

    Also make sure your location is set correctly, it can strongly influence any web related services.

    You can to set your region of clickign configuration icon, and then select Prefereces.

    Click Set country/region, and then select your location.

    Shlomi

  • BlackBerry Smartphones - not connected 2 WiFi network error message

    I had my curve 8520 for almost a year now and today after I deleted some apps, its saying that my phone is not connected 2 a wireless network and well obviously won't let me use bb app store or my weather apps. Please tell me how 2 fix it

    The first section is indeed for BB10...

    But if you keep reading, you will find the section for users of pre-BB10 (i.e. you):

    But remember... Here are the steps to perform in the order. Don't go to step 2 until you were correctly step 1.

Maybe you are looking for