link to Database 11g to 10 g

I am trying to create a link of database 11 g to 10 g database database to help:
create database ORCL10R2 link to connect to < username10g > for assistance identified by < password10g > < db10g >;
It returns
Database link created.

Select sysdate dual@ORCL10R2 returns the error:
ERROR on line 1:
ORA-12504: TNS:listener did not have the SERVICE_NAME in CONNECT_DATA

Please let me know what changes I need to do to tnsnames and listener to both servers.

I think that this question is not related to sql or pl sql.

Please post here

Database General Discussions

Mezaber

Tags: Database

Similar Questions

  • Link between Oracle database 10g and Oracle database 11g database

    We have a database from Oracle 10 g to which connect us with SID = mod

    The TNS names file is present in the directory Oracle NETWORK\ADMIN on the development computer contains the following two entries among others

    MOD =

    (DESCRIPTION =

    (ADDRESS_LIST =

    (ADDRESS = (PROTOCOL = TCP) (HOST = 10.70.10.23)(PORT = 1521))

    (ADDRESS = (PROTOCOL = TCP) (HOST = 10.70.10.21)(PORT = 1521))

    )

    (CONNECT_DATA =

    (SERVICE_NAME = mod)

    )

    )

    NEWMOD =

    (DESCRIPTION =

    (ADDRESS_LIST =

    (ADDRESS = (PROTOCOL = TCP) (HOST = 10.70.10.7)(PORT = 1521))

    (ADDRESS = (PROTOCOL = TCP) (HOST = 10.70.10.9)(PORT = 1521))

    (LOAD_BALANCE = yes)

    )

    (CONNECT_DATA =

    (SERVER = DEDICATED)

    (SERVICE_NAME = MOD)

    )

    )

    In the SQL client we can log on to the mod and newmod each with its own username and password.

    To create a link of database as follows

    CREATE newmod CONNECT TO DATABASE LINK Public user1 IDENTIFIED BY password1 USING 'newmod ';

    the database link is created without problems.

    However, in trying to retrieve data from tables in the database that uses 10.70.10.7 and 10.70.10.9 using a command like

    Select Column1 table1@newmod;

    We get the following error:

    ORA-12154: TNS: could not resolve the connect identifier specified

    How can access us the tables at the entrance to tns newmod because it resides on a server 11g, while tns mod entry is on a 10g Server? (both use the same service name, but are located on different ip addresses)

    Your help is very appreciated.

    Have you set TNS_ADMIN variable? Check if you have any additional TNSNAMES file. ORA in your ORACLE_HOME files.

    Point A of TN-entry NEWMOD to a host. Load Balancing is not needed.

    Try to create the dblink with the connect descriptor.

    create database DB_TEST link to connect to SCOTT

    identified by "password" ' (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = 10.70.10.9)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = MOD)))';

    Kind regards

    Suntrupth

  • Drop the link of database in oracle 11g

    I created a schema with the name of sapsmc which has all the privileges, then I created 1 link of database. Now, I want to drop this database link, but I can't able to drop this error.

    «SQL error: ORA-00604: error occurred at recursive SQL level 1 ORA-20101: Sorry, can't remove any object without the permission of live database SAPGateWay.» ORA-06512: at the level of the 5 00604 line. 00000 - 'error occurred at recursive SQL level %s' * Cause: an error occurred during the processing of a recursive SQL statement (a statement applicable to the internal dictionary tables). * Action: If the situation described in the next error on the stack can be corrected, do so; otherwise contact Oracle Support.

    Then I tried to delete the user SYS, while doing this that I got below error.

    SQL error: ORA-02024: database not found link 02024. 00000 - "database link not found" * Cause: database to remove link is not found in the dictionary * Action: correct the name of the database link

    Please help me I appreciate your efforts.

    ORA-20101: Sorry, can't remove any object without the permission of live database SAPGateWay.

    There is not much we can do about it.

    It is an exception defined by the user, probably from a FRONT DROP trigger defined at the level of the database, which prevents people from dropping objects.

    Contact, one who is responsible (DBA?) about how to proceed.

  • link to database to mySQL

    Hello world

    I'm trying to create a link to my oracle DB to a mySQL DB database. Now I can't start the listener "gtw_listener" with "lsnrctl start gtw_listener '.

    Error message:

    "- 12560 TNS: TNS:protocol adapter error.

    "00530 TNS: Protocol adapter error".

    Can anyone help?

    Oracle DB Version: Oracle Database 11g 11.2.0.1.0 64 bit Production

    OS version: Windows 7 SP1 64 bit

    These are my files listener.ora and tnsnames.ora, inittest.ora mySQL - test.ini:

    ---------------------------------------------

    listener.ora # Network Configuration file: C:\product\11.2.0\tg_2\network\admin\listener.ora

    # Generated by Oracle configuration tools.

    SID_LIST_GTW_LISTENER =

    (SID_LIST =

    (SID_DESC =

    (ORACLE_HOME = C:\product\11.2.0\tg_2)

    (SID_NAME = test)

    (PROGRAM = dg4odbc)

    )

    )

    GTW_LISTENER =

    (DESCRIPTION_LIST =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP (PORT = 1522))(HOST = hostname))

    )

    )

    ADR_BASE_MYSQL = C:\product\11.2.0\tg_2

    ---------------------------------------------

    tnsnames.ora # Network Configuration file: C:\product\11.2.0\tg_2\network\admin\tnsnames.ora

    # Generated by Oracle configuration tools.

    test = (DESCRIPTION =

    (ADDRESS = (PROTOCOL = tcp)

    (HOST = hostname)

    (PORT = 1522)

    )

    (CONNECT_DATA = (SID = test)

    )

    (HS = OK)

    )

    ---------------------------------------------

    # This is an example of initialization file of the agent that contains the HS settings

    # necessary for the database to ODBC gateway

    # REMARK: Name of the DSN muss yesterday angegeben werden

    HS_FDS_CONNECT_INFO = test

    HS_FDS_TRACE_LEVEL = 0

    HS_FDS_SHAREABLE_NAME = C:\Program Files\MySQL\Connector 5.2\myodbc5w.dll ODBC

    HS_LANGUAGE = GERMAN_GERMANY. WE8ISO8859P15

    #

    # ODBC specific environment variables

    #

    # REMARK: Path name ggf muss und. angepaßt werden.

    Set ODBCINI=C:\product\11.2.0\tg_2\hs\admin\mySQLtest.ini

    #

    # Required for the non-Oracle system environment variables

    #

    #set HOME=C:\product\11.2.0\tg_2

    ---------------------------------------------

    [ODBC data sources]

    test = MySQL ODBC Driver 5.2 (32 bit)

    [test]

    Driver = C:\Program Files\MySQL\Connector ODBC 5.2\myodbc5w.dll

    DATABASE = mySQL_DB_name

    DESCRIPTION = connection to mysql db

    PORT = 3306

    SERVER = ip to the mysql server

    UID = username

    PWD = pw

    CHARSET = utf8

    TRACE = OFF

    Add a space to each line in the section your listener SID - only the GTW_LISTENER and the SID_LIST_GTW_LISTENER are valid commands to start at the first position in the file.

    For more, please remove this line in your file init Bridge: HS_FDS_SHAREABLE_NAME = C:\Program Files\MySQL\Connector ODBC 5.2\myodbc5w.dll

    HS_FDS_SHAREABLE_NAME is used in Unix to specify the ODBC driver manager - you're on Windows where can I ship a manager of valid ODBC drivers you don't need to specify this parameter.manager. For more, please remove the ODBCINI set setting as the Windows ODBC driver manager uses the registry. So make sure that you have created a system ODBC 64-bit DSN using the 64-bit MySQL ODBC driver (it must be the 64-bit ODBC driver you are on a 64-bit Windows using a 64-bit DG4ODBC)

    -Klaus

  • Oracle Discoverer 4i (Portal db - oracle 8i) connectivity with database 11g problem

    Hi all

    We have oracle discoverer 4i with Portal db (oracle 8i).

    Connect to external databases by using links in the portal db db and reports will use the link db to retrieve data from views in external databases.

    External databases, we have been connecting is oracle 10g version and now we have improved these databases to version 11g.

    Now I have a created a new database link to this 11g database and I have created a new EUL in the portal to connect to this database 11g.

    But when I try to create a report using the discoverer of this new EUL after login for the discoverer we get an "Unable to connect to the database" error.

    We all have the privilege of necesscary to the user and the new database link works perfectly well. (when we try to query directly using SQL as database portal using this db link the query works perfectly).

    I'm not sure if it is a compatibility issue in accessing an 11g database since oracle disk 4i.

    Can any advise if this is the case and if there is no work around for this?

    Kind regards

    REDA

    You say that you are having problems with a link of database from 8i to 11 g (pl exact position of 4-digit versions)? If so, expect as database of links between these two versions are not supported. Is there a reason you can't pass the portal of databases of at least 10 g 2?

    See MOS Doc 207303.1

    HTH
    Srini

  • 1Z0-054: Oracle Database 11g Performance Tuning Expert

    I intend to give the exam 1z0-054 for the certification, "Oracle Database 11g Performance Tuning Expert".

    The path to Certification indicates that, if you are 'OCP DBA 11 g' then you can directly take this article and there is no requirement for training instructor. Therefore, I decided to prepare my own. Can someone guide me on study material and landfills?

    Kind regards

    Ahmer Mansoor

    Therefore, I decided to prepare my own. Can someone guide me on study material and landfills?

    First of all, the word "shock" has a precise meaning. It is short for "landfills of brain", which are illegal and can cost you this certification and all others you have taken.

    http://blogs.Oracle.com/certification/entry/0477

    Second - there is currently no study guide or a specific book to this certification at the moment. I write the study guides and this one is actually next on my list when I finished the current book to * 1Z0-117: Oracle Database 11 g Release 2: SQL Tuning *. I have a guide for 1Z0 - 054 before sometime in may more likely. That said, I have a few links for legal study on the companion Web site material for my series of guide to the subjects for this exam. It also has links to the Oracle documentation that contains the information you need. Once I have started writing the book review, links will develop quickly because I research for her themes and links to the documentation could extend as well.

    http://www.oraclecertificationprep.com/Apex/f?p=OCPSG:EXAM_DETAILS:0:no:P2_EXAM:1Z0 - 054

  • link to database

    Oracle Database 11 g 2

    EBSR12.2.4

    Oracle Linux 6.4

    Hello

    I want to create a link of database between 2 separate machines. What is the best way to do it?

    Rgds

    Roshan

    If you try to create DB link of BITEST to PREPRODUCTION, then.

    1. Add entry TNS of PREPRODUCTION in the file tnsnames.ora BITEST.

    2 tnsping PREPRODUCTION, if its OK then

    3. CREATE LINK of DATABASE link_name CONNECT TO target_db_user IDENTIFIED BY target_db_user_paswd USING 'target_tns_alias ';

    4 check the DB link - select * from dual@link_name;

    Kind regards

    Kiran

  • Configure Enterprise Manager in Oracle Database 11g

    Dear all,

    I want to configure my Enterprise Manager Console for Oracle Database 11g. During installation I unchecked "configure EM Console."

    I have Oracle Red Hat Linux 6.5, please guide me how can I start my console em on the Linux environment.

    Kind regards

    Atif Zafar

    Hello

    If you want to create or configure Enterprise Manager console, follow these steps:

    • Set ORACLE_HOME environment variable
    • Set ORACLE_SID
    • ORACLE_HOSTNAME environment variable set. Use the same value returned by the command "hostname".
    • Run the emca (Enterprise Manager Configuration Assistant).

    $ emca - create config dbcontrol db-rest

    • Follow the instructions.

    Kind regards.

  • Could not create the link of database of the schema of the ORA/APEX

    Hello

    I tried to create the link of database for my schema oracle on my localhost and it brings me an error "database user has sufficient privileges for the proposed operation.". I don't know what the problem is?

    This pattern of localhost was created for APEX.

    Thank you

    I tried to create the link of database for my schema oracle on my localhost and it brings me an error "database user has sufficient privileges for the proposed operation.". I don't know what the problem is?

    This pattern of localhost was created for APEX.

    What is developer Sql has to do with the problem? This forum is ONLY for sql developer questions.

    If this isn't a problem with Sql developer please mark ANSWERED thread and repost it in the general forum of the database

    Database General Discussions

    The exception is you say the problem: the user you are using to create the DB link doesn't have the necessary privileges to create the DB link type you are trying to create. Privileges are required on the source and target databases.

    When repost you, you will need to provide:

    1. your full 4 DB for DBs source and target text segment

    2. a copy OF the sql * plus (or other) session you use to create the DB link

    3. information on the user that you use to create the link DB - including the privileges that have been granted to this ulser

    4 information on the type of link DB you try to create

  • Migration of database 11g (11.2.0.1) to 12 c (12.1.0.2)

    Hello

    I have two RAC environment of node on windows 2008 R2 with Oracle 11 g (11.2.0.1) 64. At the same time I built another environment of 12 c (12.1.0.2) software install only on windows 2012 64-bit using ASM. It is once again two-node RAC

    I want to migrate the database 11g (size about 400GB) on the 12 c environment.

    My preference is to use RMAN. Could you get it someone pls let me know what is the best way to perform this migration.

    Note: I don't do this in the Test environment so no issue on time.

    Any help would be appreciated.

    Concerning

    Hello

    The minimum version required to upgrade to 12 c is 11.2.0.2.0

    The version of your database is 11.2.0.1, so first you must upgrade to 11.2.0.2 or later and then update can be performed.

    This requirement applies to the backup rman as well.

    We do not have this restriction with datapump

    You can also check for TTS, Golden gate methods.

    Thank you

    Krishna

  • can I use "Oracle Database 12 c: performance management and Tuning" training for the certification "Oracle Database 11g: Performance Tuning 1Z0-054 '"»

    I took "Oracle Database 12 c: new performance management and Tuning" the oracle University training. Now I would like to get certified on "Oracle Database 11g: Performance Tuning 1Z0-054 ' exam. Is this possible?

    I guess you ask if you can use the course 12 c as long as the condition of course for the review of 11g.  Over 12 c is not listed as one of the options for the 11 g certification and course requirements are normally specific version - at least with DBA certifications.  If you are already an Oracle OCP DBA, of course, there is no requirement of course for the review of performance tuning.  From what I know the training requirements for other certifications, I do not that you will be able to use it. However, Brandye will provide a definitive answer to whether the course 12 c would be acceptable for 11g certification.

    That said, I'm with John - 12 c review is about a community of 85 to 90% in the review of the 11g and is currently about 20% of the price while it is in beta.  What is the point of trying to cross the releases?

  • ORA-20002: you can't create links from database

    HI Experts,

    Creating database link, I get the error below. Anyone of you could please have some light on this error. I googled for this error and did not get any update.

    Oracle version: 11.2.0.3

    The user with whom I created this link of database DBA privilege.

    SQL > create database link temp_LINK connect to account identified by * using "(DESCRIPTION = (ADRESSE = (COMMUNUITY=tcp.world) (PROTOCOL = TCP)(Host=myself.us.lev.com) (Port = 1525)) (CONNECT_DATA = (SID = LNDB1DB)))'; "
    create database link temp_LINK connect to account identified by * using "(DESCRIPTION = (ADRESSE = (COMMUNUITY=tcp.world) (PROTOCOL = TCP)(Host=myself.us.lev.com) (Port = 1525)) (CONNECT_DATA = (SID = LNDB1DB)))'; "
    *
    ERROR at line 1:
    ORA-00604: error occurred at the SQL level 1 recursive
    ORA-20002: you can't create links from database
    ORA-06512: at line 4


    Thank you..

    Well Yes, this request confirmed suspicion of SB.

    The datadictionary is your friend

  • Link to database not be created using a stored procedure

    Hello

    I am creating a link of database using a stored procedure.

    Here is the code for it

    CREATE OR REPLACE PROCEDURE create_db_link (ca_db_name IN VARCHAR2,

    ca_service_name IN VARCHAR2)

    AUTHID CURRENT_USER IS

    BEGIN

    EXECUTE IMMEDIATE ' create public database link test_db_link connect to ca_db_name identified by ca_db_name using "ca_service_name" ';

    END create_db_link;

    During execution of the code is created the db_link. But, when I ask all_db_links I get the following result.

    OWNER

    ------------------------------

    DB_LINK

    --------------------------------------------------------------------------------

    USERNAME

    ------------------------------

    HOST

    --------------------------------------------------------------------------------

    CREATED

    ---------

    PUBLIC

    TEST_DB_LINK. WORLD

    CA_DB_NAME

    ca_service_name

    20 Aug 13

    Could you please help me understand why it shows the parameter names in the name column of the USER and the HOST instead of the name of the database and the name of the service?

    This is to show exactly what you said to do.

    Did you expect that Oracle would read as if by magic through your string you passed to run immediately and magically know to replace all occurrences of the string that correspond to local (or even global) parameter/variable names with the values of these variables?  It does not work like that.  You could concatenate the values into the string.

    for example

    EXECUTE IMMEDIATE ' create public database link test_db_link connect to ' | ca_db_name |' identified by ' | ca_db_name: ' using the "' | ca_service_name | " ' ;

    But why are create you database links running?  Shouldn't this be part of the design of your application and the initial fact before the application runs?

  • Database 11g r2 with forms 6

    We can connect orace database 11g release 2 with forms/States, 6.

    No you can not connect oracle database 11g r2 to forms or reports 6.
    Forms and reports builder 6/6i support for 10 g.
    so you have to shoft your forms and the report on the developer 10g or heigher costume.

  • 9i database 11g client access

    Hello

    Can I access a database 11g using the 9i client?

    Thank you

    I doubt that you would have access to MOS but if you haven't, please check.
    Matrix interoperability - Metalink Note 207303.1

    Aman...

Maybe you are looking for