Insert in oracle 11g postgresql using the database link

Hey all,.

an I have a problem when I try to insert into the table postgre

copy of sa/sa@xe insert "ora". "TAB0"@orapos3 using select * from tabel0;

SP2-0498: lack of column between parentheses or USING keyword list

to 'ora '. "TAB0"@orapos3, data type of are all text columns

tabel0 taype data of the whole column is varchar2...

What is the cause?

kgronau,

Thanks for your help

I found the solution to this problem, this is not caused by the configuration...

I use the pl/sql like this:

DECLARE

CURSOR remote_insert IS SELECT * FROM sa.tabel0;

START for rec IN remote_insert LOOP

INSERT INTO "ora". ' Values of TAB0"@orapos3 (rec.kolom000, rec.kolom001, rec.kolom002, rec.kolom003, rec.kolom004, rec.kolom005, rec.kolom006, rec.kolom007, rec.kolom008, rec.kolom009, rec.kolom010);

END loop;

END;

/

Thank you

Daniel

Tags: Database

Similar Questions

  • How s/n know when and what account perform a function using the database link?

    Dear,

    My application of the CIM team asked DBA to create new function and run it. Function must use the database link for remote database data. So I need to create a new database to their licensing link. Cause we guess we'll experience the performance issue after the user performs this function, or another question and errors may occur. So we want to know when and who use this feature that connects to a remote database through the new database connection in advance. And I also need to know when and which connect to the remote database using this new database link. We have no idea to get this information?  Can anyone recommend how do? Thank you very much.

    Best reqards, Otis.

    Check what business purpose, it will solve.  If the function is so safe, why everyone will use. Only admin people should access.

    All of these additional controls of this kind must be avoided as much as possible to improve the overall performance of the application.

    Still if you need, see the database audit mechanism, specifically designed for this type of activity.

    Kind regards

    Harman

  • creating user using the database link

    Hello

    I have 11g installed on one of the server
    I created the database BUGAU to bugau.us.oracle.com link
    link works fine

    "Select * from table@"Bugau "gives the expected result

    I ran the Sub statement to my server using the dblink.but do not know how to use the dblink to that effect. Please sat down

    CREATE USER ABC IDENTIFIED BY welcome TEMPORARY by DEFAULT TABLESPACE USERS_001 temp123 TABLESPACE;

    GRANT DEFAULT TO abc;

    ALTER USER abc PROFILE LEVEL_1;

    Thank you
    Archana

    Bravid wrote:

    You cannot create a user on a remote database using a database link.

    You can, but it is not a good design:

    SQL> exec dbms_utility.exec_ddl_statement@orcl('CREATE USER ABC IDENTIFIED BY ABC');
    
    PL/SQL procedure successfully completed.
    
    SQL> exec dbms_utility.exec_ddl_statement@orcl('GRANT CREATE SESSION TO ABC');
    
    PL/SQL procedure successfully completed.
    
    SQL> connect abc@orcl/ABC
    Connected.
    SQL> 
    

    Of course, the user in the database unite ORCL must have EXECUTE on DBMS_UTILITY privilege.

    SY.

  • Loding data using the database link.

    Dear all,

    I am new to Oracle GoldenGate...

    How to use the database connection in GG?

    below is the script...


    I have a source table in the client machine (. 28) and I have Norman to laod given in the target computer (. 149) per database connection.

    I run application GG in (. 28) and create the link of database called docqvoice_db alos.

    I used below extracted code also

    REPLICAT load6
    Username, PASSWORD sh
    ASSUMETARGETDEFS
    CARD sh.products, TARGET products@docqvoice_db;

    I have created the structure of the source in the target also.
    I got the error

    WARNING OGG - 01194 Oracle GoldenGate for Oracle, LOAD5.prm Capture: EXTRACT task LOAD6 added: Table PRODUCTS@DOCQVOICE_DB does not exist in the target database.


    Please advice...
    Thanks in advacne...
    Amina Hussain
    [email protected]
    No cell + 91-9886006549

    Amina,

    You have two choices. First choice, that's what you do, but your syntax is off. It should be:

    REPLICAT load6
    Sh@docqvoice_db username, PASSWORD sh
    ASSUMETARGETDEFS
    CARD sh.products, sh.products of the TARGET.

    Second choice is to create a view on the source using the link from the target database and map display just as in:

    REPLICAT load6
    Username, PASSWORD sh
    ASSUMETARGETDEFS
    CARD sh.products, sh.view_on_products of the TARGET.

    Good luck
    -joe

  • Using the database links in a process of page plsql

    I try to use a database link in a process of pl/sql page.

    It works fine when I use the link name in the plsql like this:

    BEGIN 
    SELECT  
    CARD_ID 
    into   
     :P12_HDR_CARD_NUMBER  
    from     [email protected]; 
    

    But the name of the link will come an element of page (P12_DBLINK) filled as follows:

    select db_link d, db_link r from user_db_links;  
    

    I tried the following and it doesn't work:

    DECLARE 
    l_link VARCHAR2(30); 
    BEGIN 
    l_link :=  :P12_DBLINK; 
    SELECT  
    CARD_ID 
    into   
     :P12_HDR_CARD_NUMBER  
    from     fusion.EXM_CC_COMPANY_ACCOUNTS@l_link; 
    

    It gives me:

    • ORA-04052: error occurred when searching to the top of the remote object MERGER. EXM_CC_COMPANY_ACCOUNTS@L_LINK. WORLD ORA-00604: error occurred at recursive SQL level 3 ORA-02019: description of the connection to the remote database not found

    I thought that perhaps the name of the link was joined with. WORLD automatically but already has the name of the link. WORLD at the end I tried stripping first but the error is the same.

    Is there some synatx for what will work? Can I use dynamic sql statements?

    Any suggestions are most appreciated.

    Thank you

    John

    Hi John,.

    see the following example to use the execute immediate for your purpose

    SQL - Variable for the name of the database link - Stack Overflow

    Let me know if that answers your query in the active thread

  • ORA-03113 while using the database link

    From our database, we use a database link to query on a different database tables: they are the two 10.2.0.4
    It is not always occur, but often. You have an idea? Thank you

    Take a look at this note:
    ORA-03113 UNIX - what information collect [ID 17613.1]

  • Oracle 11g and then the database export import in oracle 10g

    Hello! There everyone...

    Please tell me the way to export the data and my data structures i.e. the comprehensive database of Oracle 11 g to the old version (oracle 10g) and how he import it...

    I move the database from one computer to another without lan, preferably via the storage device...

    http://download.Oracle.com/docs/CD/B28359_01/server.111/b28319/dp_overview.htm#CEGFCFFI

    http://download.Oracle.com/docs/CD/B28359_01/server.111/b28319/dp_export.htm#i1009711

  • Using the database link in the applications

    Hello
    I just configured and created a PUBLIC database link on my oracle 10g. Can I use it with success of sqlplus do some like select simple:

    "SQL > select * from table"@dblink ".

    The query returns the result as expected.

    Now, I would like to use this public link in my applications, but the problem is that the link seems to be only available in the SYS schema.

    Ho can I access to a schema?

    In other words, to do some select (and insert) of my applications APEX by using the link to the db. If I try to select said, all I get is

    ORA-02019: description of the connection to the remote database not found

    OK, thanks all for the help, I found the problem.
    It seems that I created the link of database public and not public.

    I gave both of them and re - create public database link and now it works.

    Thanks for the help.

  • Using the database link to connect to two databases

    Hi guys,.
    Here's my question. I need to give to a Select rights contractor on the tables located in two schemas located on two different servers. A dev server and a prod. Let's say we have a user schema: EMPLOYEE on the dev and user schema: DEPARTMENT on prod. The outside contractor needs certain rights on all the tables in the schema DEPARTMENT but just select on a few (4 to be exact) tables from a diagram of the EMPLOYEE.

    My first train of thougth is: CREATE a named user: TEST (of course, only used for an example of random name) for contractor on prod. Give some rights to TEST user on all the tables in the schema of DEPARTMENT.
    Create the link of database to the dev server so user TEST can access the EMPLOYEE schema.

    How can I go to limit the user TEST link database to display only 4 tables to EMPLOYEE instead of all the tables?

    Should I also do this scenario backwards? Creating user TEST on dev, giving rights TEST for 4 tables in the FRAMEWORK, and then creating the database for you link connect to schema Department on production database?

    Any help will be appreciated. Thanks in advance.

    Just set up a new DEV scheme to be used by the link of database connection string.

    -create synonyms in this schema@DEV for these four tables.
    -grant select access on these four tables to this schema@DEV.

  • error "invalid character" using the database link

    Hello!

    I use db 9.2 and trying to connect to a 10g database.
    I created the db link... when I use it (select * from table@dblink), an error occurred: ORA-00911 invalid character. It does not accept the '@'!

    I tried to use it on sql * plus, worked well...

    Any ideas?
    Thank you!

    Can you try to set America/America in preferences - Database - NLS?

    Hope that helps,
    K.

  • How to start to use the Oracle client to access the database?

    People,

    Hello. I just installed Oracle Client (Instant Client) in the directory/home/myOracle/Oracle_Client.
    But I don't know how to start and configure the client to access Oracle database.

    Can all folk tell me how to start to use the Oracle client to access the database?

    user8860348 wrote:
    People,

    Hello. I've successfully used Oracle SQL Developer. But I want to know how to use the Instant Client.

    Can any folk tell me how to use the Client then just install it?

    I guess you're hurting understand the definition of Client instant, there isn't a tool or application or tool GUI as a sql developer or another that you can start using. It's just client installed with the minimum characteristics
    If you want to use the right application tool install sql developer in your instant client or simply running sqlplus

    See you soon

  • ONLY INSERT OR DELETE THE PRIVILEGE TO THE DATABASE LINK

    Hi all

    Version of DB 11.2.0.1

    RedHat 5.5 operating system

    I created a link to private database by following the path

    create database link test_link

    connect to Scott identified by tiger

    using

    '(DESCRIPTION =)

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

    (CONNECT_DATA =

    (SERVER = DEDICATED)

    (SERVICE_NAME = prod)

    )

    )'

    The link is created successfully and I am able to perform all the DML operations on it.

    The Question is there a way by which we can give only insert or delete or privilege is not to remove from the table at this link.

    For operations select only, I know that by creating a view I can restrict the remote user, but is there a way by which I can give only insert or remove remove link of database.

    You can not grant any privilege to a link. Can you and your team identify a location in the documentation, if required?

    By default, a remote session will get the same privilege as the user to which it connects.

    BTW:

    • do not use a database link tnsnames.ora makes your hard to maintain link
    • using addresses IP hard in a database link makes your link even more difficult to maintain
    • by specifying a hardcoded password in a database link is a breach of security.

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

    Sybrand Bakker

    Senior Oracle DBA

  • Please how can I insert a value of richinputtext in the database string attribute

    Please how can I insert a value of richinputtext in the database string attribute

    If you can get its value at the bean and then call your insert statement to put it in the DB table

    and if you want to know about the execution of SQL query

    then check - Ashish Awasthi (Jdev/ADF) Blog: SQL to run in an ADF Application using DataSource DBTransaction & JDBC query

    Ashish

  • I want to use the database to 10g control

    Hello

    I installed oracle 10g on Windows client. He installed Oracle Enterprise Management Console.

    I created all of my databases by using create database on a UNIX server instructions.

    Now, I want to use the database to monitor these databases. How can I do this? I don't see a link or the icon of the database command console.

    Thank you

    OracleGuy777 wrote:
    Hello

    I installed oracle 10g on Windows client. He installed Oracle Enterprise Management Console.

    How did you do that?

    If you talk about the control of database (http), once to create the DB control repository (which should be on the UNIX server), and then use the URL and the Port number that you learned at the end of the installation to access it from the Windows machine. This should be in the format:

    http://yourunixservername:port / em

    for example

    http://dbmsdirect01:1158 / em

    or

    https://dbmsdirect01:1158 / em



    Oracle database FAQ

  • XMLFile parameter is not supported by Oracle APEX, please use the setXMLFile() method

    "XMLFile parameter is not supported by Oracle APEX, please use the setXMLFile() method.

    I created a test web app in apex.oracle.com to try a few things. I created a Flash 2D pie chart in a Web page, and it seems to make very well. But before rendering, I get the error message above, on the region of graph for 1-2 seconds.

    Can anynone tell me what means the error message above and why I'm getting this. I do not use a custom XML part. Has not changed the default settings of the chart area.

    I could see above the error appearing clearly since the apex.oralce.com is so slow... and graphics region takes awhile to load. Otherwise I could not have noticed. It happens in the IE8 and Google chrome.

    Oralce Apex 4.2.5.00.006 (https://apex.oracle.com)

    Google Chrome 34.0.01847.116

    Internet Explorer 8.0.6001.19518

    Can anyone help please. I'll try to become a test application setup dispalying this awhile earlier error message.

    I used HTML5 graphics in apex 4.2.0.00.27 in my office in my real application workspace. Most of my users still use IE8. HTML5 graphics all appeared well in their IE8 browser. One fine day, some parameters must be changed by my network administrator or soemthing else could have happened. I have no idea. My webapplication HTML5 graphics disappear IE8 users. IE9 users had no problem. I contacted our IT support staff of any changes to security settings that day, or earlier. Absolutely no help from my frustration. I have to change maps of my application (only about 6 of them) to the Flash graphics to overcome this obstacle. This is the story behind why I use Flash cards. If anyone has experienced a similar problem in IE8 HTML5 graphics please shed any light for me... This problem may be nothing to do with the "XMLFile parameter error message', but I'm not sure.

    You strike again BUG introduced with Oracle Application Express 4.2.5

    http://www.Oracle.com/technetwork/developer-tools/Apex/application-express/Apex-425-known-issues-2186292.html

    18601802 - ANYCHART XMLFILE WARNING DISPLAYED BEFORE FLASH GRAPHICS RENDERING when Flash graphics that take a long time to make, the user can see the following warning message appears briefly "XMLFile parameter only is not supported by Oracle APEX, please use setXMLFile() method.» The table will be always delivered. Solution: Please advise end-users to ignore the message.

Maybe you are looking for

  • My A1-810 have error SD CARD update

    When I was installing updated SD CARD I was update error (photo). Update from Acer site. So can someone help me how to solve this problem?

  • Cannot receive emails sent from the France. Why?

    I sent emails to 2 different hotels in France.  I have not received any response, so I called and both said that they responded to my emails.  The two then returned their responses I got neither.  All the other (USA) emails are received OK.  Using Wi

  • Do to restore Windows 7 from a HP computer to another HP computer?

    Sorry for my bad English. Hello I bought the HP Pro 3400 MTwith a family license Windows 7 Edition Basic 64-bit OEM My friend bought the same exact computer (= on my recommendation by the way), the store had big discounts) The hard drive is an area H

  • 4215 Java error: when connecting the IPS Event Viewer

    Hello- I got a java error trying to connect to my 4215 with Cisco IPS event viewer. It's as follows: IOException in Subscription() open: java.security.cert.CertificateExpiredException: NotAfter: Sunday 29 March The web server is running on 10.x.x.x:4

  • Access to 16 GB (RAM RAM)

    I have window 7 Ultimate 32 bit. I have 16 GB of Ram, but my system says that I use only 2.9 GB.  Is it possible to unlock the rest of my memory (RAM)