Dblink setup

Hi Gurus,
Just been out of touch on dblinks for a while ...
Can some one help in creating a private DB link from a schema x from database1 to schema y from database2 which are on two different server
any suggestion on this is highly apprciated.
To be very specific could some put some light on the below syntax
create database link anotheruser.remote_db_link connect to remote_user identified by remote_password using 'remote_db'
'remote_db'
Thanks in advance
Edited by: 790072 on 22/09/2011 15:41

790072 wrote:
Hi Gurus,
Just been out of touch on dblinks for a while ...
Can some one help in creating a private DB link from a schema x from database1 to schema y from database2 which are on two different server
any suggestion on this is highly apprciated.
To be very specific could some put some light on the below syntax
create database link anotheruser.remote_db_link connect to remote_user identified by remote_password using 'remote_db'
'remote_db'
Thanks in advance
Edited by: 790072 on 22/09/2011 15:41
Hi,
Connect to user x and run the command you have
Cheers

Similar Messages

  • Oracle Wallet Issue

    Good Afternoon,
    Well once again they have me trying to figure out some more oracle issues. To make a long story short, one of the servers that we have which is on a separate network, I had to create an oracle wallet to connect our database on the server over an SSL port going out to our dev database. I was able to successfully set this up using the wallet manager and connect to the database.
    The reason we are doing this is because we have some DBlinks setup and we are trying to pull data from another schema. Well I had to create another oracle wallet on another server to go to our test database but this time this network has some pretty tight security, firewall on the switch, ACL’s on some other hardware.
    At first we had to get one of the network guys to open up the port to the database because when we performed a tnsping, we were not getting a response. After the change we got a successful response, and I started creating the other wallet. All was successful and I modify the sqlnet.ora file similar to the other server. I login into the database with the schema owner that we have on the one database and I perform a simple select statement to pull data back from the other database using the DBlink. My issues is that I am getting “ Error:ORA_28759:Failed to open file”. The sqlnet.ora points to the correct wallet and auto-login is enabled.
    I am wondering if there is another port or socket that the oracle wallet or DBlinks uses that the network could possibly be blocking. We have no DBA so pretty much we are stuck on trying to figure this out.
    Sorry for the long post.

    ORA-28759: Failure to Open File
    Cause: The system could not open the specified file. Typically, this error occurs because the wallet cannot be found.
    Action: Check the following:
    •Ensure that the correct wallet location is specified in the sqlnet.ora file. This should be the same directory location where you saved the wallet.
    •Enable Oracle Net tracing to determine the name of the file that cannot be opened and the reason.
    •Ensure that auto login was enabled when you saved the wallet.

  • Oracle dblink to mysql in Linux machines

    Hi,
    I want to make a dblink between to linux machines, one with oracle 11g database and the other with MySQL 5.0.77 database. The objective is to create triggers on a few tables in the oracle side and automatically synchronize it with same other tables in the mysql side. Can someone explain me how to accomplish this?
    Thanks in advance
    Edited by: 859234 on 18/Mai/2011 7:23

    Hi,
    To connect to MySQL from Oracle you can use the Database Gateway for ODBC (DG4ODBC). There are various notes available in My Oracle Support which give details of the setup -
    Note.1083703.1 Master Note for Oracle Gateway Products
    Note.466228.1 How to Setup DG4ODBC on Linux x86 32bit
    Note.561033.1 How to Setup DG4ODBC on 64bit Unix OS (Linux, Solaris, AIX, HP-UX)
    Once you have the gateway installed and configured you can refer to MySQL tables in the triggers using the gateway database link.
    However, you need to be aware that DG4ODBC does not support distributed transactions so you would need to have a commit between any Oracle updates and updates to MySQL in the trigger, so you would need to be careful about error checking.
    Regards,
    Mike

  • Query from oracle to MySql using dblink fetch all the rows in MySql table

    Hello,
    I am using Heterogeneous connectivity between oracle 10204 to Mysql database.
    I have a database link in the oracle side .
    I am query a table in MySql that have 10 million rows.
    Its doesnt matter if i am running :
    select * from "CDR_Accounts"@mysql where "id"=7675405;
    or
    select * from "CDR_Accounts"@mysql ;
    There is an index on the id column.
    Yet, it seems that the Mysql is feteching all the rows from the table , all the data is transfering to oracle over the dblink , and only after that the requested rows are get back to the client.
    The /etc/odbcinst.ini file is as follow:
    [odbcprd:oracle@odbc /software/oracle]$ cat /etc/odbcinst.ini
    [myodbc3]
    Description             = Mysql connector to mysql version 3.5
    Driver          = /software/oracle/MysqlOdbc/3.52/lib/libmyodbc3-3.51.25.so
    Driver64                = /usr/lib
    Setup           = /software/oracle/MysqlOdbc/3.52/lib/libmyodbc3S-3.51.25.so
    Setup64         = /usr/lib
    UsageCount              = 1
    CPTimeout               = 3600
    CPReuse         = Please advice
    Thanks

    When using a gateway it is always possible that a where clause is not sent to the remote database. This is called post processing and depends on several factors like the used ODBC driver, the columns and its data types but also if you specify certain functions in the where clause.
    The fastest way to see if post processing happens is in Oracle 11g the explain plan for a query. In 10g the plan does not always match the statement sent to the foreign database. Here it would be better to enable gateway tracing and setting the trace level to ON. This will log the statements sent to the foreign database and you can compare what statement was sent with the statement you've tried to execute.

  • Need help trouble shooting Database Gateway for MS SQL Server setup, getting ORA-28546 error

    Dear All,
    I am trying to setup Oracle Database Gateway for MS SQL Server(I don't have admin access to the MS SQL Server).  When I try to test the dblink connection, I get the following error.
    I issued select * from dual@xyz;
    ORA-28546: connection initialization failed, probable Net8 admin error
    ORA-28511: lost RPC connection to heterogeneous remote agent using SID=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521))(CONNECT_DATA=(SID=dg4msql)))
    ORA-02063: preceding 2 lines from xyz
    28546. 0000 -  "connection initialization failed, probable Net8 admin error"
    My setup is the following.
    1. Oracle 11gR2 running on Oracle Linux 6, the same version gateway is installed on the same server, but different home directory.
    2. Oracle DB home directory is /u01/app/oracle/product/11.2.0/dbhome_1, gateway home directory is /u01/gateway.
    3. I use the same listener.ora file for both the db and the gateway.
    4. the contents of my listener.ora, tnsnames.ora and the initdg4msql.ora are below.
    /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          #(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1522))
          (ADDRESS = (PROTOCOL = TCP)(HOST = db.abc.com.tw)(PORT = 1522))
    mssql =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (GLOBAL_DBNAME=db.abc.com.tw)
          (ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1)
          (SID_NAME=orcl)
    SID_LIST_mssql =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME=dg4msql)
          (ENVS=LD_LIBRARY_PATH=/u01/gateway/dg4msql/driver/lib:/u01/gateway/lib)
          (PROGRAM_NAME=/u01/gateway/bin/dg4msql)
    /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/tnsnames.ora
    LISTENER_ORCL =
      (ADDRESS = (PROTOCOL = TCP)(HOST = db.abc.com.tw)(PORT = 1522))
    ORCL =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = db.abc.com.tw)(PORT = 1522))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = orcl.abc.com.tw)
    dg4msql  =
      (DESCRIPTION=
        (ADDRESS=(PROTOCOL=TCP) (HOST=localhost)(PORT = 1521))
        (CONNECT_DATA=(SID=dg4msql))
        (HS=OK)
    /u01/gateway/dg4msql/admin/initdg4msql.ora
    HS_FDS_CONNECT_INFO=[192.168.0.1]:1433//XIETEST
    # alternate connect format is hostname/serverinstance/databasename
    HS_FDS_TRACE_LEVEL=255
    HS_FDS_RECOVERY_ACCOUNT=RECOVER
    HS_FDS_RECOVERY_PWD=RECOVER
    dblink was created using statement below.
    CREATE DATABASE LINK "xyz.abc.COM.TW"
    CONNECT TO SA IDENTIFIED BY
    USING 'dg4msql';
    Couple more things, that I have done to check the work above.
    [oracle@db admin]$ ping 192.168.0.1
    PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.
    64 bytes from 192.168.0.1: icmp_seq=1 ttl=61 time=7.61 ms
    64 bytes from 192.168.0.1: icmp_seq=2 ttl=61 time=7.41 ms
    ^C
    --- 192.168.0.1 ping statistics ---
    2 packets transmitted, 2 received, 0% packet loss, time 1818ms
    rtt min/avg/max/mdev = 7.417/7.516/7.615/0.099 ms
    [oracle@db admin]$ tnsping dg4msql
    TNS Ping Utility for Linux: Version 11.2.0.1.0 - Production on 11-SEP-2013 10:53:11
    Copyright (c) 1997, 2009, Oracle.  All rights reserved.
    Used parameter files:
    /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION= (ADDRESS=(PROTOCOL=TCP) (HOST=localhost)(PORT = 1521)) (CONNECT_DATA=(SID=dg4msql)) (HS=OK))
    OK (0 msec)
    [oracle@db admin]$ lsnrctl status mssql
    LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 11-SEP-2013 10:54:23
    Copyright (c) 1991, 2009, Oracle.  All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))
    STATUS of the LISTENER
    Alias                     mssql
    Version                   TNSLSNR for Linux: Version 11.2.0.1.0 - Production
    Start Date                11-SEP-2013 10:09:46
    Uptime                    0 days 0 hr. 44 min. 37 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
    Listener Log File         /u01/app/oracle/diag/tnslsnr/db/mssql/alert/log.xml
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
    Services Summary...
    Service "dg4msql" has 1 instance(s).
      Instance "dg4msql", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    Obviously, I would like to get this setup to work, but I also have couple other questions regarding this setup.
    1. When installing the gateway, it asks to run the root.sh script.  the root.sh script as for the following.
    Enter the full pathname of the local bin directory: [/usr/local/bin]:
    The file "dbhome" already exists in /usr/local/bin.  Overwrite it? (y/n)
    [n]: n
    The file "oraenv" already exists in /usr/local/bin.  Overwrite it? (y/n)
    [n]: n
    The file "coraenv" already exists in /usr/local/bin.  Overwrite it? (y/n)
    [n]: n
    is the above answer correct?
    Thanks for reading.

    Dear Klaus,
    I did start a new SQL*PLUS session
    The output of  /u01/gateway/bin/dg4msql is
    [oracle@db log]$ /u01/gateway/bin/dg4msql
    Oracle Corporation --- WEDNESDAY SEP 11 2013 14:45:06.604
    Heterogeneous Agent Release 11.2.0.1.0 - 64bit Production  Built with
       Oracle Database Gateway for MSSQL
    The output of env is
    HOSTNAME=db.abc.com.tw
    SHELL=/bin/bash
    TERM=xterm
    HISTSIZE=1000
    ORACLE_UNQNAME=orcl
    TMPDIR=/tmp
    QTDIR=/usr/lib64/qt-3.3
    QTINC=/usr/lib64/qt-3.3/include
    USER=oracle
    LD_LIBRARY_PATH=/u01/app/oracle/product/11.2.0/dbhome_1/lib:/lib:/usr/lib
    LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.tbz=01;31:*.tbz2=01;31:*.bz=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=01;36:*.au=01;36:*.flac=01;36:*.mid=01;36:*.midi=01;36:*.mka=01;36:*.mp3=01;36:*.mpc=01;36:*.ogg=01;36:*.ra=01;36:*.wav=01;36:*.axa=01;36:*.oga=01;36:*.spx=01;36:*.xspf=01;36:
    ORACLE_SID=orcl
    ORACLE_BASE=/u01/app/oracle
    ORACLE_HOSTNAME=db.abc.com.tw
    MAIL=/var/spool/mail/oracle
    PATH=/u01/app/oracle/product/11.2.0/dbhome_1/bin:/usr/sbin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/oracle/bin
    PWD=/home/oracle
    LANG=en_US.UTF-8
    SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
    HISTCONTROL=ignoredups
    SHLVL=1
    HOME=/home/oracle
    TMP=/tmp
    LOGNAME=oracle
    QTLIB=/usr/lib64/qt-3.3/lib
    CVS_RSH=ssh
    CLASSPATH=/u01/app/oracle/product/11.2.0/dbhome_1/jlib:/u01/app/oracle/product/11.2.0/dbhome_1/rdbms/jlib
    LESSOPEN=|/usr/bin/lesspipe.sh %s
    ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1
    G_BROKEN_FILENAMES=1
    _=/bin/env

  • Encoding conversion issue on dblink (Oracle - Postgresql)

    I have sucessfully setup a dblink from Oracle to Postgresql.
    The Postgresql database use UTF-8 encoding for all its data.
    When I try this request SELECT * FROM "table"@Postgres , I receive this error :
    ORA-00942: Table ou vue inexistante
    [Generic Connectivity Using ODBC]DRV_DescribeTable: DB_ODBC_RECORD (1093): ; ERREUR:  le caractère 0xc5a1 du codage « UTF8 » n'a pas d'équivalent dans « LATIN1 » (SQL State: HY000; SQL Code: 1)
    ORA-02063: précédant 2 lines de RECORD
    00942. 00000 -  "table or view does not exist"
    *Cause:   
    *Action:
    Erreur à la ligne 2, colonne 5How can I get rid off of this error ?

    Do you get the same problem for all tables or if you run the select as -The problem is raised only on some tables not all.
    select * from "owner"."tablename"@hsodbc ;On a failing select, adding the "owner" doesn't solve the problem.
    Are there any error sin the trace file and if so could you post them here ?I perform this query : select * from "owner"."table"@POSTGRE
    Here are the traces :
    Oracle Corporation --- MONDAY    FEB 27 2012 16:21:54.959
        Version 10.2.0.1.0
    hoagprd (2): ; hoagprd Entered.
    HOACONN.C (244): ; [Generic Connectivity Using ODBC] version: 4.6.2.0.0070
    HOACONN.C (295): ; Class version: 200
    hoagprd (2): ; hoagprd Exited with retcode = 0.
    hoainit (3): ; hoainit Entered.
    (0): ; connect string is: defTdpName=Postgre;SYNTAX=(ORACLE8_HOA,
    BASED_ON=ORACLE8, IDENTIFIER_QUOTE_CHAR="",
    CASE_SENSITIVE=CASE_SENSITIVE_QUOTE);BINDING=<navobj><binding><datasources><da-
    tasource name='Postgre' type='GENERIC_ODBC_FOR_HS'
    connect='Postgre'><driverProperties/></datasource></datasources><remoteMachines-
    /><environment><optimizer noFlattener='true'/><misc year2000Policy='-1'
    consumerApi='1' sessionBehavior='4'/><queryProcessor parserDepth='2000'
    tokenSize='1000' noInsertParameterization='true'
    noThreadedReadAhead='true'
    noCommandReuse='true'/><debug
    generalTrace='true'/></environment></binding></navobj>
    ORACLE GENERIC GATEWAY Log File Started at 2012-02-27T16:21:54
    hoainit (3): ; hoainit Exited with retcode = 0.
    hoalgon (7): ; hoalgon Entered. name = rec_lct.
    Created new ODBC connection (136751296)
    hoalgon (7): ; hoalgon Exited with retcode = 0.
    hoaulcp (4): ; hoaulcp Entered.
    hoaulcp (4): ; hoaulcp Exited with retcode = 0.
    hoauldt (5): ; hoauldt Entered.
    hoauldt (5): ; hoauldt Exited with retcode = 0.
    hoabegn (9): ; hoabegn Entered. formatID = 306206, hoagttln = 29, hoagttid =
    PDELTAA.286b8407.4.69.1747760, hoagtbln = 10, hoagtbid = ^D, tflag = 0, initial
    = 1
    hoabegn (9): ; hoabegn Exited with retcode = 0.
    hoadtab (26): ; hoadtab Entered. count = 1
    hoadtab (26): ; schema_name = owner, table_name = table
    odbc_owner: select * from "owner"."table"
    DB_ODBC_POSTGRE (1093): ; ERREUR:  le caractère 0xc5a1 du codage « UTF8 » n'a
    pas d'équivalent dans « LATIN1 » (SQL State: HY000; SQL Code: 1)
    DRV_DescribeTable: DB_ODBC_POSTGRE (1093): ; ERREUR:  le caractère 0xc5a1 du
    codage « UTF8 » n'a pas d'équivalent dans « LATIN1 » (SQL State: HY000; SQL
    Code: 1)
    nvRETURN (drv_priv.c 948): -2202
    hoadtab (26): ; hoadtab Exited with retcode = 0.
    hoapars (15): ; hoapars Entered. stmtType = 0, id = 1.
    nvOUT (qp_sqtxt.c 55): SELECT * FROM "owner"."table"
    nvRETURN (qpsynon.c 1140): -1
    odbc_owner: select * from "owner"."table"
    DB_ODBC_POSTGRE (1093): ; ERREUR:  le caractère 0xc5a1 du codage « UTF8 » n'a
    pas d'équivalent dans « LATIN1 » (SQL State: HY000; SQL Code: 1)
    DRV_DescribeTable: DB_ODBC_POSTGRE (1093): ; ERREUR:  le caractère 0xc5a1 du
    codage « UTF8 » n'a pas d'équivalent dans « LATIN1 » (SQL State: HY000; SQL
    Code: 1)
    nvRETURN (drv_priv.c 948): -2202
    [A00D] Failed to open table Postgre:owner.table
    nvRETURN (qpbldbtn.c 502): -2202
    nvRETURN (qpbldbtn.c 382): -2202
    nvRETURN (qp_seman.c 3153): -2202
    nvRETURN (qp_yacc.c 1930): -2202
    nvRETURN (qp_compl.c 515): -2202
    nvRETURN (qp_compl.c 232): -2202
    nvRETURN (qp_compl.c 200): -2202
    hoapars (15): ; hoapars Exited with retcode = 942.
    hoadtab (26): ; hoadtab Entered. count = 1
    hoadtab (26): ; schema_name = owner, table_name = table
    odbc_owner: select * from "owner"."table"
    DB_ODBC_POSTGRE (1093): ; ERREUR:  le caractère 0xc5a1 du codage « UTF8 » n'a
    pas d'équivalent dans « LATIN1 » (SQL State: HY000; SQL Code: 1)
    DRV_DescribeTable: DB_ODBC_POSTGRE (1093): ; ERREUR:  le caractère 0xc5a1 du
    codage « UTF8 » n'a pas d'équivalent dans « LATIN1 » (SQL State: HY000; SQL
    Code: 1)
    nvRETURN (drv_priv.c 948): -2202
    hoadtab (26): ; hoadtab Exited with retcode = 0.
    hoapars (15): ; hoapars Entered. stmtType = 0, id = 1.
    nvOUT (qp_sqtxt.c 55): SELECT * FROM "owner"."table"
    odbc_rec: select * from "owner"."table"
    DB_ODBC_POSTGRE (1093): ; ERREUR:  le caractère 0xc5a1 du codage « UTF8 » n'a
    pas d'équivalent dans « LATIN1 » (SQL State: HY000; SQL Code: 1)
    DRV_DescribeTable: DB_ODBC_POSTGRE (1093): ; ERREUR:  le caractère 0xc5a1 du
    codage « UTF8 » n'a pas d'équivalent dans « LATIN1 » (SQL State: HY000; SQL
    Code: 1)
    nvRETURN (drv_priv.c 948): -2202
    [A00D] Failed to open table Postgre:owner.table
    nvRETURN (qpbldbtn.c 502): -2202
    nvRETURN (qpbldbtn.c 382): -2202
    nvRETURN (qp_seman.c 3153): -2202
    nvRETURN (qp_yacc.c 1930): -2202
    nvRETURN (qp_compl.c 515): -2202
    nvRETURN (qp_compl.c 232): -2202
    nvRETURN (qp_compl.c 200): -2202
    hoapars (15): ; hoapars Exited with retcode = 942.

  • ASCP Instance setup - DB LInk Creation in decentralized configuration

    I came across this question on setting up the APS for decentralized configuration and really couldn't find why? The question was why do we need to create two DB links (One in Source for destination db and other one in destination for source db) and can we setup ASCP instance by creating only one DB Link, either at destination or at source?
    Thanks
    Madhavi

    Hello,
    The reason for this is that there is 2 way communication for the planning products.
    On the planning instance the dblink is required when you run collections and release recommendations from the workbench (amongst other actions)
    on the source, when you perform for instance an ATP inquiry, data is being read from the aps instance.
    This is the design of ASCP. Both links are required.
    regards
    Geert

  • Setup test from production

    I want to setup a test database from production rman copy. I have an rman level 0 backup with no catalog. I looked at the duplicate rman command, but that requires to have a dblink to the prod system. I dont' have that and can't.
    Given that I do I create a test database with a different db name from the production rman level 0 copy?
    Please suggest.

    Thanks but the doc has the following assumptions.
    1. db name is same on the restored host.(But I want to have db name test and should be the copy of db prod)
    How do I restore to a different name than the source db name and also without the db link connection?
    Thanks for your help.

  • DBlink in dataguard.

    Hi,
    I'm, using oracle 10.2.0.4 on Windows 2003,
    I have dataguard setup, i have one doubt related to dblink in dataguard.
    If i create a DB link in prod DB , can the same will be reflected in standby, as standby database is in mount state will it be create there,
    also, the DMLs related to DML will reflect in standby,
    Please clear my doubt, as i have to implement it in prod env.
    Thanks
    Edited by: user10745179 on Nov 5, 2012 11:31 AM

    Hi;
    I suggest please also review      Dblink on Physical standby - ORA-16000 [ID 1296288.1] and also referance part
    PS:For future issue you can use Forum Home » High Availability » DATA GUARD which is Dataguard dedicated forum site.
    Regard
    Helios

  • HANA as a Oracle Data Source via dblink

    Has anyone configured Oracle dblink to connect to HANA?
    I am trying to help out the Oracle DBA. It looks like Oracle documentation on dblink shows it uses ODBC.
    Any tips would be great. Thanks.

    This is what the Unix/Oracle team did to make the connection (Thanks JK and TN). Hope this helps other folks.
    Install a ODBC driver manager.  It looks like Oracle recommends unixODBC (http://www.unixodbc.org/)
    The SAP HANA client installed, which includes the ODBC driver for HANA
    The particular HANA instance setup as a data source in ODBC on the Linux box
    Install Oracle Database Gateway for ODBC (http://docs.oracle.com/cd/E16338_01/gateways.112/e12070/toc.htm)
    Configure the gateway to connect to the HANA instance (http://docs.oracle.com/cd/B28359_01/gateways.111/b31042/configodbc.htm), which includes setting up a new database link

  • Oracle ---- DBLink ---- DB2

    Hi Techies,
    My requirement is to create a DBLink with SQL Server2000 (ofcourse from Oracle). I came to know about Oracle's Heterogeneous feature. Transaparent gateways, Agents are particulary interesting.
    But, in an implementation wise, I need a case wise help, which can help me, as an end user, to set up Oracle, install the Gateway, configure the Agent, and anything to be done at SQL Server2000 side.
    What should I do realize this?
    Your help is genuinely appreciated.
    Thanks and regards,
    Malik

    Hi,
    You need to install one of the Database Gateways -
    11.1 Database Gateway for DRDA (DG4DRDA)
    11.2 Database Gateway for DB2 (DG4DB2)
    11.1 or 11.2 Database Gateway for ODBC (DG4ODBC)
    After the gateway is installed and configured then you create the database link which uses the gateway to manipulate data on DB2 - select, insert, update and delete, for example -
    select * from db2_table@gateway_db_link ;
    The database link is created using a tnsnames.ora entry which references the gateway setup.
    There is further information on the gateways available on My Oracle Support and OTN.
    If you want more specific detail then let us know -
    - if you have a gateway installed already and which one if so
    - what version of Oracle you are using
    - platform where Oracle is running
    - version of DB2 to access
    - platform where DB2 is running
    Regards,
    Mike

  • Ora-24367 when trying to connect by dblink to SqlServer

    Hello,
    I know that it is OCI forum but i hope that someone could me help with error
    ora- 24367 which cause and action is below :
    Cause: This occurs during authentication of a migratable user. the service handle has not been set with non-migratable user handle.
    Action: Service handle must be set with non-migratable user handle when it is used to authenticate a migratable user.
    I would like to connect to Sql Server database from Oracle through shared dblink created with this command :
    CREATE shared public DATABASE LINK apost_shared1
    CONNECT TO cbd_test IDENTIFIED BY cbd_testt
    AUTHENTICATED BY cbd_test IDENTIFIED BY cbd_testt
    USING 'post';
    I use ODBC connectivity to Sql Server joined with oracle connectivity (tnsnames, listener).
    When i try to select table in remote db i get ora-24367 error. could you explain me what is happening ? I don't know what cause and action means. I'm not OCI programmer. Maybe someone who knows OCI could explain me how all works ?

    it's difficult to understand your wifi setup
    is it both a shared internet from adhoc connection to a pc
    and a airport express?
    for adhoc connection to a pc to work the pc can't be connected to the wifi router just so you know

  • Can you setup Advanced queueing between 2 databases using SQL*net connection

    Hi experts,
    Is it possible to setup AD between 2 databases without using DBlink? I know we can use Java program to do that. Unfortunately, I have no experience in Java.
    Our version databases is 10g
    Thanks in advance
    Hieu

    Following are the different options available.
    Interfaces to Advanced Queuing
    You can access Advanced Queuing functionality through the following interfaces:
    PL/SQL using DBMS_AQ, DBMS_AQADM,andDBMS_AQELM. Refer to the Oracle9i Supplied PL/SQL Packages and Types Reference.
    Visual Basic using Oracle Objects for OLE. Refer to the Online Help for Oracle Objects for OLE.
    Java using the oracle.AQ Java package. Refer to the Oracle9i Supplied Java Packages Reference.
    Java Message Service (JMS) using the oracle.jms Java package. Refer to the Oracle9i Supplied Java Packages Reference.
    Internet access using HTTP, HTTPS, and SMTP
    For java references you can refer to below URL
    http://docs.oracle.com/cd/B10500_01/appdev.920/a96609/arj_aq.htm#1005399
    I believe no one will provide you fully written code here. You can get help from this forum,

  • What is a DBLINK?

    Hi everyone.
    Can you please clarify me the significance of a DBLINK?
    I found that it is being used in INSERT, UPDATE, MERGE statements.
    What purpose does it serve? Has it got to do anything with accessing database over the network?
    Please reply me as soon as possible.
    HAVE A NICE DAY!
    Kishore.

    database link is not something that exists automatically.
    It needs to be created using the CREATE [PUBLIC] DATABASE LINK command.
    you or your DBA must first create the database link using the above command and then it becomes
    available for you to use.
    Did you or your DBA create the database link with the above command? If they did, then the name given to
    the database link at creation time is what you use after the "@" in INSERT/UPDATE/DELETE statements.
    Oracle may enforce that the name of the database link must be same at the name of the database to which
    it points. This again depends if DBA has setup the Oracle server to ensure this restriction. If not, you
    can give your database link any name you like.
    Again, a database link is a mechanism of pointing to destination oracle database from the current database.
    This destination database may or may not be on the same physical machine. All it tells is the username
    and password to use when connecting to the destination database to run the SQL statement.

  • Insert/Update table via DBLink

    I have a situation where the table that I want users to be able to maintain is owned by a different schema on a different database.
    TABLE1 is owned by SCHEMA1 on DB1
    select,insert,update,delete is granted to SCHEMA2 on DB1
    DBLINK is a DBLink from SCHEMA3 on DB2 to SCHEMA2 on DB1
    HTMLDB is running on SCHEMA3 on DB2
    This setup is necessary because SCHEMA1 is the main data repository, SCHEMA2 has limited access to SCHEMA1 for security reasons, and SCHEMA3 is where HTMLDB is installed
    i.e.
    SCHEMA3@DB2 --> SCHEMA2@DB1 --> SCHEMA1.TABLE1@DB1
    Whenever I try to use the wizards to create a standard Report/Form combo it fails when selecting the table for the Form - table TABLE1 is not in the select list because it's not owned by the schema assigned to the workspace.
    So I created a temporary copy of the table in SCHEMA3 and used the wizard to create the Report/Form combo. This works fine.
    I then dropped the table from SCHEMA3 and created a synonym pointing to SCHEMA1.TABLE1@DBLINK
    The report still works fine but the Automated Row Fetch fails with the error
    "ORA-06550: line 1, column 17: PL/SQL: ORA-00936: missing expression ORA-06550: line 1, column 9: PL/SQL: SQL Statement ignored
    I presume this is because it's specifically looking for a table owned by SCHEMA3 when in fact it's a synonym.
    Is there any way around this without recoding all the optimistic locking, insert, update and delete code?

    Doh! After all that I answered my own question ... it's really simple.
    Create a view in SCHEMA3 pointing to the table in SCHEMA1 and create the Report/Form based on the view
    e.g. CREATE VIEW table1 AS SELECT * FROM schema1.table1@dblink;
    (Where's the Delete Post option when you need it?! ;)

Maybe you are looking for

  • How to set plug-in Java Runtime parameters on JRE setup command line

    Hi all: I need to install JRE and set the Java Runtime Parameters -Xmx by command line .. I mean I don't want enter Control panel and set this parameter manually in Java Runtime Parameters textBox.. thanx. Best regards w.shiha

  • ITunes stopped displaying other languages

    My iTunes recently stopped displaying other languages. What used to be songs in japanese or korean (hangul) is now displayed as block texts. These languages appear on all other programs on my pc. ONLY ON ITUNES does it do this. To test, i even put my

  • How can i be make call and receive on ipad 1

    please help,how can i make calls receive with my ipad 1

  • HELP! Unable to View Notifications from the Locked Screen

    Hi, I need help. I just purchased recently a Z3 Compact phone. I'm a previous Sony User -- which was X10 Mini Pro so somehow I'm a bit atuned to some (though not all) settings, but what I find strage is that when I have text messages or other notific

  • Regarding LDB's

    Hi All,             Can we make use of LDB's on any type Tables i.e transparent,cluster,pooled tables? Thanks in Advance Kishore