How to export PUBLIC DBLinks?

Hi,
I have two schemas:
Schema1 & Schema2 in which there are lots of objects. In this database there are some PUBLIC Database Links which are being referred by these schemas. I want to export these two schemas along with the PUBLIC DB Links that are referred by these schemas.
NOTE: It is not possible for me to export all the PUBLIC DB Links. I only want to export the PUBLIC DB Links that are being referred in these two schemas.
Is there a way to find out this dependencies?
I mean how can I find out which DB Links are being referred in this schemas?
NOTE:
PUBLIC DB Links are not exported along with the schemas.
Also If I query the all_db_links but here the "Owner" is "PUBLIC".
Thanx in advance.
CK.

Anyone?? Still no solution..

Similar Messages

  • How to export a user and their schema from one 10g database to another?

    Hi,
    I would like to export a user and their entire schema from one 10g database to another one. How do I do this?
    thx
    adam

    If you want to export a user and the schema owned to the user, and import to the same user in a different database, or a different user in the same database, you can use the exp and imp commands as described in the Utilities manual.
    These commands are very versatile and have a lot of options - well worth learning properly. To give you a simplistic shortcut, see below - I create a user 'test_move', create some objects in the schema, export, create a new user in the database 'new_move' and import.
    oracle@fuzzy:~> sqlplus system/?????
    SQL*Plus: Release 10.2.0.1.0 - Production on Sat Mar 11 21:46:54 2006
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    SQL> create user test_move identified by test_move;
    User created.
    SQL> grant create session, resource to test_move;
    Grant succeeded.
    SQL> connect test_move/test_move
    Connected.
    SQL> create table test (x number);
    Table created.
    SQL> insert into test values (1);
    1 row created.
    SQL> exit
    Disconnected from Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    oracle@fuzzy:~> exp system/????? file=exp.dmp owner=test_move
    Export: Release 10.2.0.1.0 - Production on Sat Mar 11 21:48:34 2006
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to: Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    Export done in AL32UTF8 character set and AL16UTF16 NCHAR character set
    About to export specified users ...
    . exporting pre-schema procedural objects and actions
    . exporting foreign function library names for user TEST_MOVE
    . exporting PUBLIC type synonyms
    . exporting private type synonyms
    . exporting object type definitions for user TEST_MOVE
    About to export TEST_MOVE's objects ...
    . exporting database links
    . exporting sequence numbers
    . exporting cluster definitions
    . about to export TEST_MOVE's tables via Conventional Path ...
    . . exporting table                           TEST          1 rows exported
    . exporting synonyms
    . exporting views
    . exporting stored procedures
    . exporting operators
    . exporting referential integrity constraints
    . exporting triggers
    . exporting indextypes
    . exporting bitmap, functional and extensible indexes
    . exporting posttables actions
    . exporting materialized views
    . exporting snapshot logs
    . exporting job queues
    . exporting refresh groups and children
    . exporting dimensions
    . exporting post-schema procedural objects and actions
    . exporting statistics
    Export terminated successfully without warnings.
    oracle@fuzzy:~> sqlplus system/?????
    SQL*Plus: Release 10.2.0.1.0 - Production on Sat Mar 11 21:49:23 2006
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    SQL> create user new_move identified by new_move;
    User created.
    SQL> grant create session, resource to new_move;
    Grant succeeded.
    SQL> exit
    Disconnected from Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    oracle@fuzzy:~> imp system/????? file=exp.dmp fromuser=test_move touser=new_move
    Import: Release 10.2.0.1.0 - Production on Sat Mar 11 21:50:12 2006
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to: Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    Export file created by EXPORT:V10.02.01 via conventional path
    import done in AL32UTF8 character set and AL16UTF16 NCHAR character set
    . importing TEST_MOVE's objects into NEW_MOVE
    . . importing table                         "TEST"          1 rows imported
    Import terminated successfully without warnings.
    oracle@fuzzy:~>                                                       If moving between databases, remember to set the SID properly before the import. If keeping the same userid, skip the from/to stuff in the import.
    There are many variations on the theme ...
    You can simplify this. You can select tables individually. You can use a parameter file. You can transport all the constraints and data. You can skip the data and only move the definitions. You can get some help (imp/exp help=yes).
    And, if it's all 10g, there is a new and improved facility called expdp/impdp (dp = data pump) which has a lot more capability as well, including direct transfer (no intermediate file) together with suspend/restart. Also documented in the Utilities manual.

  • How to export all the site files to the new computer

    I'll be buying a new computer soon and need to export all the
    site files (usernames and passwords) to that. I know how to export
    individual site information, but the passwords are encrypted. Also,
    is there way to save all sites at once and then just transfer that
    to the new machine?

    This is a multi-part message in MIME format.
    ------=_NextPart_000_0039_01C852A0.8D4985F0
    Content-Type: text/plain;
    charset="iso-8859-1"
    Content-Transfer-Encoding: quoted-printable
    Choose Site > Manage Sites and then use the Export feature
    in the Site =
    Manager. You'll have an option to export all settings
    (including =
    username and password). DW stores them in .ste files, which
    you can =
    later use the Site Manager to Import.=20
    By the way, the Import/Export features work with multiple
    files, just do =
    a multi-select before clicking the Export button and select
    multiple =
    .ste files when importing.
    Best - Joe
    Joseph Lowery
    Vice President of Marketing, WebAssist
    Author of Dreamweaver CS3 Bible
    "Mikkola" <[email protected]> wrote in
    message =
    news:[email protected]...
    > I'll be buying a new computer soon and need to export
    all the site =
    files=20
    > (usernames and passwords) to that. I know how to export
    individual =
    site=20
    > information, but the passwords are encrypted. Also, is
    there way to =
    save all=20
    > sites at once and then just transfer that to the new
    machine?
    >
    ------=_NextPart_000_0039_01C852A0.8D4985F0
    Content-Type: text/html;
    charset="iso-8859-1"
    Content-Transfer-Encoding: quoted-printable
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
    Transitional//EN">
    <HTML><HEAD>
    <META http-equiv=3DContent-Type content=3D"text/html; =
    charset=3Diso-8859-1">
    <META content=3D"MSHTML 6.00.6000.16587"
    name=3DGENERATOR>
    <STYLE></STYLE>
    </HEAD>
    <BODY>
    <DIV><FONT face=3DArial size=3D2>Choose Site
    &gt; Manage Sites and then =
    use the=20
    Export feature in the Site Manager. You'll have an option to
    export all =
    settings=20
    (including username and password). DW stores them in .ste
    files, which =
    you can=20
    later use the Site Manager to Import.
    </FONT></DIV>
    <DIV><FONT face=3DArial
    size=3D2></FONT> </DIV>
    <DIV><FONT face=3DArial size=3D2>By the way, the
    Import/Export features =
    work with=20
    multiple files, just do a multi-select before clicking the
    Export button =
    and=20
    select multiple .ste files when
    importing.</FONT></DIV>
    <DIV><FONT face=3DArial
    size=3D2></FONT> </DIV>
    <DIV><FONT face=3DArial size=3D2>Best -
    Joe</FONT></DIV>
    <DIV><FONT face=3DArial
    size=3D2></FONT> </DIV>
    <DIV><FONT face=3DArial size=3D2>Joseph
    Lowery<BR>Vice President of =
    Marketing, <A=20
    href=3D"
    http://www.webassist.com">WebAssist</A><BR>Author
    of <A=20
    href=3D"
    http://www.idest.com/dreamweaver/">Dreamweaver
    CS3 =
    Bible</A></FONT></DIV>
    <DIV><FONT face=3DArial
    size=3D2></FONT> </DIV>
    <DIV><FONT face=3DArial size=3D2>"Mikkola"
    &lt;</FONT><A=20
    href=3D"mailto:[email protected]"><FONT
    face=3DArial=20
    size=3D2>[email protected]</FONT></A><FONT
    face=3DArial =
    size=3D2>&gt; wrote=20
    in message </FONT><A =
    href=3D"news:[email protected]"><FONT=20
    face=3DArial =
    size=3D2>news:[email protected]</FONT></A><FONT=20
    face=3DArial size=3D2>...</FONT></DIV><FONT
    face=3DArial size=3D2>&gt; =
    I'll be buying a=20
    new computer soon and need to export all the site files
    <BR>&gt; =
    (usernames and=20
    passwords) to that. I know how to export individual site
    <BR>&gt; =
    information,=20
    but the passwords are encrypted. Also, is there way to save
    all <BR>&gt; =
    sites=20
    at once and then just transfer that to the new=20
    machine?<BR>&gt;</FONT></BODY></HTML>
    ------=_NextPart_000_0039_01C852A0.8D4985F0--

  • How to export string in CDATA with the jaxb xml writer?

    How to export string in CDATA with the jaxb xml writer?
    It read CDATA no problem but it is lost on write.

    Found it:
    ### THIS WORKS WITH SUN JAXB REFERENCE IMPLEMENTATION. ###
    (Not tested with any other)
    In the xsd, you must create a type for your string-like element.
    Then associate a data type converter class to this new type, which will produce CDATA tags.
    Then you must set a custom characterEscapeHandler to avoid the default xml escaping in order to preserve the previously produced CDATA tag.
    Good luck.
    -----type converter-----
    import javax.xml.bind.DatatypeConverter;
    public class ExpressionConverter {
         * Convert an expression from an XML file into an internal representation. JAXB will
         * probably have already stripped off the CDATA encapsulation. As a result, this method
         * simply invokes the JAXB type conversion for strings but does not take any other action.
         * @param text an XML-compliant expression
         * @return a pure string expression
         public static String parse(String text) {
              String result = DatatypeConverter.parseString(text);
              return result;
         * Convert an expression from its internal representation to an XML-compliant version.
         * This method will simply surround the string in a CDATA block and return the result.
         * @param text a pure string expression
         * @return the expression encapsulated within a CDATA block
         public static String print(String text) {
              StringBuffer sb = new StringBuffer(text.length() + 20); //should add the length of the CDATA tags + 8 EOLs to be safe
              sb.append("<![CDATA[");
              sb.append(wrapLines(text, 80));
              sb.append("]]>");
              return DatatypeConverter.printString(sb.toString());
         * Provides line-wrapping for long text strings. EOL indicators are inserted at
         * word boundaries once a specified line-length has been exceeded.
         * @param text the string to be wrapped
         * @param lineLength the maximum number of characters that should be included in a single line
         * @return the new string with appropriate EOL insertions
         private static String wrapLines(String text, int lineLength) {
              //wrap logic, watchout for quoted strings!!!!
              return text;
    ------in caller----
    Marshaller writer = ......
    writer.setProperty("com.sun.xml.bind.characterEscapeHandler", new NoCharacterEscapeHandler());
    -----escaper-----
    import java.io.IOException;
    import java.io.Writer;
    import com.sun.xml.bind.marshaller.CharacterEscapeHandler;
    public class NoCharacterEscapeHandler implements CharacterEscapeHandler {
         * Escape characters inside the buffer and send the output to the writer.
         * @param buf buffer of characters to be encoded
         * @param start the index position of the first character that should be encoded
         * @param len the number of characters that should be encoded
         * @param isAttValue true, if the buffer represents an XML tag attribute
         * @param out the output stream
         * @throws IOException if the writing process fails
         public void escape(char[] buf, int start, int len, boolean isAttValue, Writer out) throws IOException {
              for (int i = start; i < start + len; i++) {
                   char ch = buf;
                   if (isAttValue) {
                        // isAttValue is set to true when the marshaller is processing
                        // attribute values. Inside attribute values, there are more
                        // things you need to escape, usually.
                        if (ch == '&') {
                             out.write("&");
                        } else if (ch == '>') {
                             out.write(">");
                        } else if (ch == '<') {
                             out.write("<");
                        } else if (ch == '"') {
                             out.write(""");
                        } else if (ch == '\'') {
                             out.write("&apos;");
                        } else if (ch > 0x7F) {
                             // escape everything above ASCII to &#xXXXX;
                             out.write("&#x");
                             out.write(Integer.toHexString(ch));
                             out.write(";");
                        } else {
                             out.write(ch);
                   } else {
                        out.write(ch);
              return;

  • HT4906 How do export photos from an iMac to the cloud to access them on an iPad?

    How do export photos from an iMac to the cloud to access them on an iPad?

    You can do it by manually adding those photos to My Photo Stream and let the iPad access them and copy to the iPad's Camera Roll for permanent residence on the iPad. The photos will be viewable in the Ps for 30 days. 
    Or create a Shared Photo Stream which will leave the photos up indefinitely and access the Shared Photo Stream (private or public)  with the iPad. 
    Of course both devices must be signed in to the same iCloud account and have Photo Stream enabled.
    the My Photo Stream is not a permanent situation wereas Shared Photo Streams are. 
    iCloud: My Photo Stream FAQ
    iCloud: My Photo Stream and iCloud Photo Sharing limits
    OT

  • Using keytool to export public/private keypairs (not just certificates)

    Hello,
    If I create a public/private keypair in a given keystore, how can export both keys for use in another application? As far as I understand it, keytool only allows public keys to be exported.
    If this isn't possible via keytool, how can I export the keypair programmatically, and how would such a code-based solution need to export the keypair so that it's recognisable by other applications?
    Would there be any additional steps involved if I first exported the public key to get it signed by a CA, then imported the resulting certificate, and wished that the keypair was then based on the certificate+private key?
    Thanks,
    Chris Brown

    There is an example in the Java Tutorial on how to save your private and public keys to a file, and then read them in again.

  • How to export tables from development server to production server

    HI,
    Any body plz let me know how to export tables from development server to production server. what are the user names and password i need to ask my manager to do that. what are the requirements i need to ask him.
    Plz reply me ASAP.
    Thanks in advance.

    hi buddy
    first of all you should let us know the environment of production and development servers
    database versions
    and you need to have userid which has privilege to export tables of other schema. userid(owner) of the tables you want to export.
    Traditional way
    export tables in development server and then ftp to production and then import
    in the above case you should have similar database structure(tablespace etc) to avoid errors...
    if there are few tables only , you can use dblink instead of export and import...

  • How to export a data as an XML file from oracle data base?

    could u pls tell me the step by step procedure for following questions...? how to export a data as an XML file from oracle data base? is it possible? plz tell me itz urgent requirement...
    Thankz in advance
    Bala

    SQL> SELECT * FROM v$version;
    BANNER
    Oracle DATABASE 11g Enterprise Edition Release 11.1.0.6.0 - Production
    PL/SQL Release 11.1.0.6.0 - Production
    CORE    11.1.0.6.0      Production
    TNS FOR 32-bit Windows: Version 11.1.0.6.0 - Production
    NLSRTL Version 11.1.0.6.0 - Production
    5 rows selected.
    SQL> CREATE OR REPLACE directory utldata AS 'C:\temp';
    Directory created.
    SQL> declare                                                                                                               
      2    doc  DBMS_XMLDOM.DOMDocument;                                                                                       
      3    xdata  XMLTYPE;                                                                                                     
      4                                                                                                                        
      5    CURSOR xmlcur IS                                                                                                    
      6    SELECT xmlelement("Employee",XMLAttributes('http://www.w3.org/2001/XMLSchema' AS "xmlns:xsi",                       
      7                                  'http://www.oracle.com/Employee.xsd' AS "xsi:nonamespaceSchemaLocation")              
      8                              ,xmlelement("EmployeeNumber",e.empno)                                                     
      9                              ,xmlelement("EmployeeName",e.ename)                                                       
    10                              ,xmlelement("Department",xmlelement("DepartmentName",d.dname)                             
    11                                                      ,xmlelement("Location",d.loc)                                     
    12                                         )                                                                              
    13                   )                                                                                                    
    14     FROM   emp e                                                                                                       
    15     ,      dept d                                                                                                      
    16     WHERE  e.DEPTNO=d.DEPTNO;                                                                                          
    17                                                                                                                        
    18  begin                                                                                                                 
    19    OPEN xmlcur;                                                                                                        
    20    FETCH xmlcur INTO xdata;                                                                                            
    21    CLOSE xmlcur;                                                                                                       
    22    doc := DBMS_XMLDOM.NewDOMDocument(xdata);                                                                           
    23    DBMS_XMLDOM.WRITETOFILE(doc, 'UTLDATA/marco.xml');                                                                  
    24  end;                                                                                                                  
    25  /                                                                                                                      
    PL/SQL procedure successfully completed.
    .

  • I'm trying to find out how to export my apple contacts to the Salesforce software and they need to be in a csv format and I don't know if this is possible and how to do it if it is?

    I'm trying to find out how to export my apple contacts to the Salesforce software and they need to be in a csv format and I don't know if this is possible and how to do it if it is?

    I think there are third-party programs which will do that, but you can also do it with Automator:
    See the links in my post, here: https://discussions.apple.com/message/22390873#22390873
    The file or clipboard contents will be in Tab Separated vars, so you'll have to open with a spreadsheet program and save as Comma Separated Vars format.

  • In SSMS after creating the query Report, how to export excel the same report from SSMS

    for Beginners in SSMS after the report is created , how to export the same report to excel, I did try the option to task and export and follow the procedure, this procedure does not export the same report, the one was created, unless I am missing some steps,
    is there a way to do just like we do in SSRS go to solution explorer, and properties and add the Target Server URL or not
    in SSMS, 
    after I save the report it saves in project , can some one please guide me how to do it, and what steps I am doing wrong,
    any help will be great.  I am not technical person, just starting to learn from internet.
    thanks in advance.

    As you have said you are not a technical person try using Import Export wizard.
    Refer this link
    http://www.mssqltips.com/sqlservertutorial/203/simple-way-to-import-data-into-sql-server/
    And another simplest one is to copy the result set from the query window. Right click the result and select "Copy with Headers".
    Regards, RSingh

  • How to export best quality gif animations in flash

    how to export best quality gif animations in flash

    GIF is a color restricted format with on/off support for transparency. There's really no settings you can tweak to output a better GIF. You have a drop-down during GIF sequence export to allow transparency, select the amount of colors (up to 256) and you can choose dither to save a little filespace. The only 2 things in there that really matter are dither and amount of colors used to export.
    If your content is very similar (e.g. not a lot of complex gradients/shadows/etc) and is limited in color use turning down the amount of colors used and dithering is your only option.
    Make sure you're exporting the GIF via "Publish Settings" so you get a single animated GIF and not file->export->movie because this creates a separate sequence of GIF images for each frame.

  • How to export data with column headers in sql server 2008 with bcp command?

    Hi all,
    I want know "how to export data with column headers in sql server 2008 with bcp command", I know how to import data with import and export wizard. when i
    am trying to import data with bcp command data has been copied but column names are not came.
    I am using the below query:-
    EXEC master..xp_cmdshell
    'BCP "SELECT  * FROM   [tempdb].[dbo].[VBAS_ErrorLog] " QUERYOUT "D:\Temp\SQLServer.log" -c -t , -T -S SERVER-A'
    Thanks,
    SAAD.

    Hi All,
    I have done as per your suggestion but here i have face the below problem, in print statment it give correct query, in EXEC ( EXEC master..xp_cmdshell @BCPCMD) it was displayed error message like below
    DECLARE @BCPCMD
    nvarchar(4000)
    DECLARE @BCPCMD1
    nvarchar(4000)
    DECLARE @BCPCMD2
    nvarchar(4000)
    DECLARE @SQLEXPRESS
    varchar(50)
    DECLARE @filepath
    nvarchar(150),@SQLServer
    varchar(50)
    SET @filepath
    = N'"D:\Temp\LDH_SQLErrorlog_'+CAST(YEAR(GETDATE())
    as varchar(4))
    +RIGHT('00'+CAST(MONTH(GETDATE())
    as varchar(2)),2)
    +RIGHT('00'+CAST(DAY(GETDATE())
    as varchar(2)),2)+'.log" '
    Set @SQLServer
    =(SELECT
    @@SERVERNAME)
    SELECT @BCPCMD1
    = '''BCP "SELECT 
    * FROM   [tempdb].[dbo].[wErrorLog] " QUERYOUT '
    SELECT @BCPCMD2
    = '-c -t , -T -S '
    + @SQLServer + 
    SET @BCPCMD
    = @BCPCMD1+ @filepath 
    + @BCPCMD2
    Print @BCPCMD
    -- Print out below
    'BCP "SELECT 
    * FROM   [tempdb].[dbo].[wErrorLog] " QUERYOUT "D:\Temp\LDH_SQLErrorlog_20130313.log" -c -t , -T -S servername'
    EXEC
    master..xp_cmdshell
    @BCPCMD
      ''BCP' is not recognized as an internal or external command,
    operable program or batch file.
    NULL
    if i copy the print ourt put like below and excecute the CMD it was working fine, could you please suggest me what is the problem in above query.
    EXEC
    master..xp_cmdshell
    'BCP "SELECT  * FROM  
    [tempdb].[dbo].[wErrorLog] " QUERYOUT "D:\Temp\LDH_SQLErrorlog_20130313.log" -c -t , -T -S servername '
    Thanks, SAAD.

  • How to EXPORT a concurrent program from one instance to another

    Hi,
    I am new to EBS.
    How to EXPORT a concurrent program from one instance to another. I dont want to use FNDLOAD.
    Is there any other way from where we can export the concurrent program to anothere instance from CLIENT connection server.
    Thanks
    Asis

    Hi;
    What is EBS version? Why you dont use FNDLOAD?
    Pelase see below thread
    Move concurrent program to prod
    Move concurrent program to prod
    Regard
    Helios

  • How to export Tabel? (Exporting and Importing of RFCDES table)

    Hi,
    We are doing system Refresh on qualitysystem,
    I want to export the Tables and reimport them after system refresh
    Tables like: RFCDES
    How can export this table ?
    How to import the table?
    It is very urgent, Please give me the solution as soon as possible
    Note: we are using BRTOOLS
    Points awarded
    Regards,
    Ravi

    Hi Ravi,
    Create a control file like "rfcdes_export.ctl"
    export
    file '/usr/sap/data/export_rfc.dat’
    delete from rfcdes
    select * from rfcdes
    Take the export :
    R3trans -w rfcdes_export.log rfcdes_export.ctl
    Create the control file "rfc_import.ctl"
    import
    file '/usr/sap/data/export_rfc.dat'
    Import it:
    R3trans -w rfc_import.log -u 1268 rfc_import.ctl
    Hope it will help you.
    Best Wishes.
    Kumar

  • How to export photos from photo gallery to my iPad

    How to export photos from photo gallery to my iPad

    I had no trouble finding the "Export" tools in the "File" menu. They are greyed out when no photo is selected, but they are functional after selecting one or more photos.
    I agree that it would be nice to have the "Reveal in Finder" option back, but they probably don't want us mucking about inside the Photos library structure.

Maybe you are looking for

  • The sequence number when exporting should represent stacks

    When exporting images, I would like the sequence number to apply to the first image in a stack, but the rest of the images in the stack should have the same number as the first one but with an extra suffix. Something like this: stack 1: DSCN0010.DNG

  • BusinessObjects XI 3.1 bossosvcacct account for QA(etc) and PRODUCTION

    Hi All,       We are using a bossosvcacct service account in PRODUCTION as suggested and this is working fine for AD authentication.       QUESTION: What is the best practice for QA and OTHER environments, should we use the same bossosvcacct account

  • RMAN Full Database restore cross platforms

    All I have a database 10.2.0.3 running on Solaris 10 OS. I have performed a full back up (level 0) of this database using rman utility with auto back up on. I am trying to worl on a scenario where I could restore this backup on another linux machine.

  • Installin elements 11

    When trying to install photoshop elements 11 I get the message "error opening installation log file. Verify log file location exists and if it is writable. I tried to access folder options in tools in Explorer but no such option exists on my programm

  • Enlarge image 800%

    Hi! I've got a hi-res tiff image (5031x3579 px) which I need to use as a background on a very large print (2500 mm x2500 mm, 300 dpi). I placed the original image in InDesign and had to enlarge it by approx 800% to fit the canvas. Effective dpi ended