Using Database link to go from one database to another

Hi all,
I am trying to create a SQL-query which connects to two
different databases.
I have created a Database link, which points from on database to
the other, and have supplied the database name, username and
password.
when I try to run following query I get error ORA:02085, MY_LINK
is connecting to SIEBN1S.(domain).com
SELECT COUNT(*) FROM MY_TABLE@MYLINK;
additional info:
2 databases are exact copies on different servers (SIEBN1S and
N1SSIEB)
the MY_TABLE exists in both databases and I have rights on it in
both, I can separately connect to both databases and look into
MY_TABLE
I have created the database link using following statement (in
the N1SSIEB db):
create database link MYLINK connect to <usr> identified by <pwd>
using 'SIEBN1S'
any help is welcome

You have set GLOBAL_NAMES to TRUE in your init.ora file. This
means your database link must have the same name as the database
you want to connect to ie SIEBN1S.(domain).com.
alternatively you can change GLOBAL_NAMES. to test this try
'ALTER SESSION SET GLOBAL_NAMES=FALSE'.
hth, APC

Similar Messages

  • What are Parameters? How are they differenet from Variables? Why can't we use variables for passing data from one sequnece to another? What is the advantage of using Parameters instead of Variables?

    Hi All,
    I am new to TestStand. Still in the process of learning it.
    What are Parameters? How are they differenet from Variables? Why can't we use variables for passing data from one sequnece to another? What is the advantage of using Parameters instead of Variables?
    Thanks in advance,
    LaVIEWan
    Solved!
    Go to Solution.

    Hi,
    Using the Parameters is the correct method to pass data into and out of a sub sequence. You assign your data to be passed into or out of a Sequence when you are in the Edit Sequence Call dialog and in the Sequence Parameter list.
    Regards
    Ray Farmer

  • How to use Go URL to Navigate from one report to another

    I have used Actionlink option to navigate from one report to another, It is nopt working on the dashboard because i used presentation variables in my first report and its throwing me an error below, I have to pass on id from one summary report to detail report, I have created Go URL, Do i need to use that URL in my summary report column formula ?
    Need some info ~ Thanks ~Srix
    An invalid object was accessed during evaluation.
    Error Details
    Error Codes: QBB4RZQS:SDKE4UTF
    Location: saw.views.evc.activate, saw.httpserver.processrequest, saw.rpc.server.responder, saw.rpc.server, saw.rpc.server.handleConnection, saw.rpc.server.dispatch, saw.threadpool, saw.threadpool, saw.threads
    Expression: report.variables['TimePeriod']

    Hi ,
    Please refer the below threads.
    How to Navigate from one report to another report based on column values
    Navigating from one report to another report
    Re: Navigate from Report 1 to Report 2 using Go URL
    Award points it is useful.
    Thanks
    satya

  • HT204023 What is 'sim pin' under Cellular data on my iPad mini?  How do I use that and change cards from one country to another?

    I have a new ipad mini with retina display, and cellular capability.
    I've learned how to set up an account and use it in the US.  I'm now traveling internationally and need to learn about changing the sim card.
    My first question is about the notation under 'settings', Cellular Data, SIM PIN.  Under SIM PIN, there is an option of turning on 'sim pin' and then entering a PIN to lock the SIM.
    What does SIM PIN mean in the first place?
    Where does the PIN number come from?
    Thankx.
    SusanFrances

    A SIM PIN, also referred to sometimes as a PUK Code is like a PIN number for your SIM card (just like your ATM Card).  Since your SIM card has your cellular account on it and can be typically removed from one device and put into another, you can lock the SIM Card with a SIM PIN if you choose.  If you activate the SIM PIN feature and forget your SIM PIN when you try to re-activate your device or a new device in the future using the same SIM Card, you may have to contact you carrier to get a new SIM Card. http://support.apple.com/kb/ht1316
    As far as changing the SIM Cards out because you want to use a new carrier, you can remove the SIM card fomr the old carrier and put in the SIM  card form the new carrier. http://support.apple.com/kb/ht5163
    I hope this helps clear things up.

  • Can you use iCloud to transfer data from one iPod to another?

    Hi, I'm a newbie to Apple. I'm getting another iPod touch with bigger storage, the only data I care about is Clash of Clans. Can I use iCloud to back up the data, and restore it to the iPod I want? Please help, I don't want to lose my data without the right directions.

    Yes.  Back up your current device to iCloud, the when setting up your new one, restore it to this backup.  It will include your apps and app data (as well as other data and settings).  See http://support.apple.com/kb/ht2109.

  • How to use session to passing data from one JSP to another JSP

    Dear All, I had create 2 jsp web page and want to do this:
    1. input some data into the text box and click the submit button, the jsp page
    will open another jsp page and send the text box data to the new open jsp page.
    can any one tell me how to open a new jsp web page and reciev data from another jsp page?
    thanks yu very much!
    the question.jsp got some code like:
    <html>
    <input type= 'text' name = 'txtName' size = 10 >
    <input type= 'submit' name = 'submit'>
    <% some jsp code %>
    </html>
    answer.jsp
    <html>
    <%
    some jsp code here
    %>
    </html>

    Contents of HTML forms are transmitted as name-value pairs, so you can call request.getParameter(String name) with your form field's name in order to access its value:
    String textValue=request.getParameter("txtName");Regards

  • Can no longer drag or cut and paste links or words from one place to another with new Firefox update

    After updating Firefox 19.0.2 to my iMac Desktop 10.8.2, Lion, I can no longer drag or cut and paste anything to anywhere, anymore. Please help. Thanks!

    Does this also happen if you try to copy/cut and paste text in a text area like "Post a Reply" on this forum?
    Try to reinstall Firefox.<br />
    Download a new copy of the Firefox program and save the disk image (dmg) file to the desktop
    *Firefox 19.0.2: http://www.mozilla.org/en-US/firefox/all.html
    *Trash the current Firefox application (e.g. open the Applications folder in the Finder and drag the Firefox application to the Trash) to do a clean (re-)install
    *Install the new version that you have downloaded
    *https://support.mozilla.org/kb/Installing+Firefox+on+Mac
    Your profile data is stored elsewhere in the Firefox Profile Folder, so you won't lose your bookmarks and other personal data if you uninstall and (re)install Firefox.
    *http://kb.mozillazine.org/Profile_folder_-_Firefox

  • Importing form field layout from one form to another ?

    I often create forms in both English and French. Many are long and complicated and I have to create them all individually. Is there any way I could use the form field layout from one form, for another form? That would be fantastic.

    Sure. To replace the underlying page contents and retain any fields, document-level code, links, etc., select: Document > Replace Pages
    you will likely have some tweaking to do to some field positions.

  • Java Program to copy file from one directory to another failing

    Hello All,
    Oracle Applications 12.1.3
    RDBMS: 11.2.0.30
    SQL*Plus: 10.1.0.5.0
    Java beginner here so help is much appreciated.  I'm have some java code that I'm using to copy a file from one directory to another in an Oracle Applications Server.  I notice that when moving to a new instnace I started to get file not found errors.  I think it's because of the directory.  My question is, does the directory in which I trying to pick up the file have to be a DBA_DIRECTORY, or a UTL_FILE directory in order for the java to find the file and move it?
    Here is my code...
    CREATE OR REPLACE AND COMPILE JAVA SOURCE NAMED "COPY_FILE_JVS" AS
    import java.io.*;
    public class COPY_FILE_JVC{
      public static void copy(String SourceFile, String DestDir) {
        File source = new File(SourceFile);
        File dest = new File(DestDir);
        File cpDestFile = null;
        try {
          if (dest.isDirectory()) {
              if(source.isFile()) {
                System.out.println("File name = " + source.getName());
                System.out.println("File name dest = " + dest.getPath() );
                System.out.println("File name cpDestFile = " + dest.getPath() + File.separator + source.getName());
                cpDestFile = new File(dest.getPath() + File.separator + source.getName());
              else {
                System.out.println("Directory or File Not Found");
                return;
          BufferedInputStream  br = new BufferedInputStream (new FileInputStream (source));
          BufferedOutputStream  bw = new BufferedOutputStream (new FileOutputStream (cpDestFile));
          int read = 0;
          while((read = br.read()) != -1) {
            //System.out.println((char)read);
            bw.write(read);
          br.close();
          bw.close();
        catch (FileNotFoundException e) {
        e.printStackTrace();
        catch (IOException e) {
        e.printStackTrace();

    I get these messages when calling the java from SQL Plus as follows...
    serveroutput on size 100000;
    dbms_java.set_output(1000000);
    MY_PKG.CopyFile('/home/my_user/set_env.sh','/interface/home'); (this is call to oracle pl/sql package which calls the java.)
    PL/SQL procedure successfully completed.
    Directory or File Not Found
    PL/SQL procedure successfully completed.
    If I change the directory from /home/my_user/ to any directory that is defined in DBA_DIRECTORIES or is a UTL_FILE directory to program works.  Is it perhaps because the java is in a PL/SQL package as seen below?  The PL/SQL program runs as the APPS user and I have issued the following the command grant JAVASYSPRIV to APPS.
    Here is the PL/SQL Package....
    CREATE OR REPLACE PACKAGE BOLINF.MY_PKG AUTHID CURRENT_USER AS
    CopyFile(p_SourceFile IN VARCHAR2, p_DestDir IN VARCHAR2);
    +++++++++++++++++++++++++++++
    CREATE OR REPLACE PACKAGE BODY BOLINF.MY_PKG  is
    CopyFile(p_SourceFile IN VARCHAR2, p_DestDir IN VARCHAR2)
    AS LANGUAGE JAVA NAME 'COPY_FILE_JVC.copy(java.lang.String, java.lang.String)';

  • AS3: Tween from one MovieClip to Another

    Hi!
    As the title implies, I'm trying to use ActionScript 3 to tween from one movieclip to another based on an external event.
    I'm currently using two "Tween" objects to adjust alpha values. The first tweens-out the previous movieclip, and the second tweens-in the current movieclip. Code follows, with headers included for completeness:
    // headers
         import fl.transitions.Tween;
         import fl.transitions.easing.*;
    // tweens
         var MOVIECLIP1_out:Tween = new Tween(MOVIECLIP1, "alpha", Regular.easeOut, 1, 0, 3, true);
              var MOVIECLIP2_in:Tween = new Tween(MOVIECLIP2, "alpha", Regular.easeIn, 0, 1, 3, true);
    My issue, as you might suspect, is that the transition doesn't look right. The previous clip tweens to a blank white screen, and then the second is brought in. I need the tweens to overlap, as they would with a timeline-based tween.
    How do I remedy this? My solution was to create a loop, from 0 to 1 incrementing by 0.2, and setting the respective alpha values to increase and decrease. I also planned to set the time for each tween to one-tenth (0.1) of a second:
        var _out1: 1
        var _out2: 0.8
        var _in1: 0
        var _in2: 0.2
    while (_in1 <= 1)
        var MOVIECLIP1_out:Tween = new Tween(MOVIECLIP1, "alpha", Regular.easeout, _out1, _out2, 0.1, true);
        var MOVIECLIP2_in:Tween = new Tween(MOVIECLIP2, "alpha", Regular.easeIn, _in1, _in2, 0.1, true);
        _out1 = _out1 - 0.2;
        _out2 = _out2 - 0.2;
        _in1 = _in1 + 0.2;
        _in2 = _in2 + 0.2;
    This would result in ten total tweens, over one full second, as follows:
    time : Clip : alpha change
    0.1 : MOVIECLIP1 : 1 to 0.8
    0.1 : MOVIECLIP2 : 0 to 0.2
    0.1 : MOVIECLIP1 : 0.8 to 0.6
    0.1 : MOVIECLIP2 : 0.2 to 0.4
    0.1 : MOVIECLIP1 : 0.6 to 0.4
    0.1 : MOVIECLIP2 : 0.4 to 0.6
    0.1 : MOVIECLIP1 : 0.4 to 0.2
    0.1 : MOVIECLIP2 : 0.6 to 0.8
    0.1 : MOVIECLIP1 : 0.2 to 0
    0.1 : MOVIECLIP2 : 0.8 to 1
    And the transition is complete.
    I feel that there must be a smarter way to accomplish this task. Do I have my head screwed on right here? Any suggestions?

    I think that I posted this in the wrong forum... maybe an admin can move this to the AS3 section?
    Anyway, in the absence of an answer, I coded the following, and it works pretty well. I had to round the alpha values to the tenths place.
    YOURBUTTON.addEventListener
      MouseEvent.MOUSE_OVER,
      function(evt:MouseEvent):void
        var _out1:Number = 1;
        var _out2:Number = 0.8;
        var _in1:Number = 0;
        var _in2:Number = 0.2;
    while (_in2 <= 1)
        var MOVIECLIP1_out:Tween = new Tween(MOVIECLIP1, "alpha", Regular.easeOut, _out1, _out2, 1, true);
        var MOVIECLIP2_in:Tween = new Tween(MOVIECLIP2, "alpha", Regular.easeIn, _in1, _in2, 1, true);
        _out1 = int((_out1 - 0.2 + 0.05)*10)/10;
        _out2 = int((_out2 - 0.2 + 0.05)*10)/10;
        _in1 = int((_in1 + 0.2 + 0.05)*10)/10;
        _in2 = int((_in2 + 0.2 + 0.05)*10)/10;

  • How to copy/move Portal database from one machine to another?

    I am receiving a ORA-22973 error (size of object identifier exceeds maxmum size allowed) on the wwsec_enabler_config_info$ table when attempting to import my entire "portal30" schema from one database to another on different Windows NT Servers.
    Background: I had Portal 3.0.9.8 installed, configured, and running with the following setup:
    Machine 1: Windows NT 4.0 SP 6, Oracle 9iAS 1.0.2.2, Oracle Portal 3.0.9.8
    Machine 2: Windows NT 4.0 SP 6, Oracle 8i Database 8.1.7.0.0
    We no longer have use of Machine 2 and needed to move the database over to Machine 1.
    I performed the following steps:
    1. Installed Oracle 8i database 8.1.7.0.0 on Machine 1.
    2. Set up the tablespaces in the database on Machine 1 to match the same names and sizes of the tablespaces in the database on Machine 2.
    3. Used the Oracle "exp" command to export the entire database that resided on Machine 2.
    4. Copied the ".dmp" file to Machine 1.
    5. Used the Oracle "imp" command to import the entire database on Machine 1.
    6. The import completed successfully with warnings. But I had received the ORA-22973 error during the import process.
    7. After it completed I compared the list of tables and packages in the "portal30" schema between the two databases. The wwsec_enabler_config_info$ table is missing.
    8. I tried to export and import only the wwsec_enabler_config_info$ table between the two databases, but continue to receive the ORA-22973 error.
    Without the table being created, access to the portal cannot be achieved.
    Here are my questions:
    1. Is there anyway to create the wwsec_enabler_config_info$ table without receiving the noted error?
    2. Is there any other workable way to get the portal database from Machine 2 to Machine 1?
    I am aware of the portal import/export utilities but that would require me to run through the 2 hour install of Portal 3.0.9.8 on the database on Machine 1 and then individually export and import all the portal components (security, pages, applications, content library, etc). I merely wanted to transfer the entire database from one machine to another, so I felt the Oracle exp/imp utilities would be quicker and less work.

    Hi,
    I've been hitting problems with Portal 3.0.9.8.1 against 8.1.7.2.1 on NT - i.e., Intermedia not working at all, and have been advised by support to move back to 8.1.7.1.1.
    I don't want to lose any of my content in the Portal since the db upgrade and am wondering on what is the best way to do this.
    The version of the Portal will be the same so I am hoping I can just use the Portal export and import utilities, as afterall, it is just data and the schema structures are the same between db versions. I'm also hoping that the Portal export doesn't use the standard Oracle EXP tool as it doesn't work anymore on 8.1.7.2.1 on NT!!
    Regards,
    John

  • How Can I Copy an database from one server to another ?

    Hi All,
    I need to copy an existing database from one server to another server. I want to maintain all the settings from the source database.
    I´m not used to Oracle database and i´d be glad for any help.
    How can I do this ? Do I need to backup and restore in the other server ? Do I need to copy files from one server to another ?
    Any help will be really appreciated.
    Carlos.

    I think a simpler approach, other than using RMAN, is to do a database export from the source and then import them into the target database. But you will need to do some ground work on the target, i.e, create database, tablespaces, and schemas (with their name the same as those in the source database.)

  • How to copy data from one table to another (in other database)

    Hi. I would like to copy all rows from one table to another (and not use BC4J). Tables can be in various databases. I have already 2 connections and I am able to browse source table using
    ResultSet rset = stmt.executeQuery("select ...");
    But I would not like to create special insert statement for every row . There will be problems with date formats etc and it will be slow. Can I use retrieved ResultSet somehow ? Maybe with method insertRow, but how, if ResultSet is based on select statement and want to insert into target table? Please point me in the right direction. Thanks.

    No tools please, it must be common solution. We suceeded in converting our BC4J aplication to PostgreSQL, the MSSQL will be next. So we want to write simple aplication, which could transfer data from our tables between these 3 servers.

  • Copying report file from one server to another requires refresh database?

    Hi,
    I am using Crystal Reports 11 for development.
    We have a number of crystal reports that are served on a web server running classic ASP that uses these reports with Embedded Crystal Server XI installed on the server.
    When I am developing or modifying a .rpt file (report) I connect to a UAT/development database on a dedicated development server.
    When I am happy with the report and testing is successful I copy and paste the report onto the production server, replacing the old report.
    The problem is I don't have a user account and password on the production server. Our DBAs are the only one with passwords on the prod servers. If an application needs a password entered they come to my desk and enter it for me.
    The problem is in order for the modified report to work on the production, I have to call up a DBA to "verify the database" for me by connecting to production server and entering username and password.
    This is really annoying.
    Why can't I just disconnect\log off server in crystal reports, then copy and paste the .rpt file to prod server and be done with it?
    If I had dozens of reports to change, it seems very rigid that I have to ask a DBA to enter the user account and password used by the application to run the report.
    Can someone please explain how to be able to copy and paste modified reports/ or new reports from one server to another without having this problem.
    Thanks
    Haggisns

    Moving to the Legacy SDK forum.
    Crystal can be magical sometimes but if you don't tell CR where the database is how is it to know you moved it?
    As you have seen and for security reasons you can't simply "drop" a report on any server and expect it to just connect to a new DB server without being asked to enter in credentials or that you have changed the DB server to report off of.... If it's too much work for the DBA to set log on info then he should give you access to so can.
    Thank you
    Don

  • How to move SQL database from one location to another location i.e. from C' drive to D' drive

    Hi, How to move SQL database from one location to another location i.e. from C' drive to D' drive ? please share some link.
    Thanks and Regards, Rangnath Mali

    Hi Rangnath,
    According to your description, my understanding is that you want to move databased from C drive to D drive.
    You can detach Database so that the files become independent, cut and paste the files from source to destination and attach again.
    There are two similar posts for your reference:
    http://mssqltalks.wordpress.com/2013/02/28/how-to-move-database-files-from-one-drive-to-another-or-from-one-location-to-another-in-sql-server/
    http://stackoverflow.com/questions/6584938/move-sql-server-2008-database-files-to-a-new-folder-location
    Best Regards,
    Wendy
    Wendy Li
    TechNet Community Support

  • Migration databases from one server to another

    Hi All
    I want to migrate our 8 production databases from one server to another server. these are in RAC .Details are below
    OLD SERVER: -
    OS: REDHAT LINUX 3
    ORACLE: ORACLE 10gR1
    FILE SYSTEM : OCFS
    STORAGE: SAN
    Its a RAC databases
    NEW SERVER: -
    OS: REDHAT LINUX 5
    ORACLE: ORACLE 11g R2
    FILE SYSTEM:ASM
    STORAGE:SAN ( fresh one)
    Its also RAC DATABASES
    So please tell me the best method to migrate 8 databases from old server to another server . all databases size are not more than 50 GB.
    All servers details are above .please let me know if you require any other details
    please reply soon we have to do it on urgent basis

    Since all your databases are small (< 50G), I would recommend using expdp/impdp - http://download.oracle.com/docs/cd/E11882_01/server.112/e17222/expimp.htm - as this will provide several advantages as listed in the document.
    Different Upgrade Methods For Upgrading Your Database (Doc ID 419550.1)
    HTH
    Srini

Maybe you are looking for