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.

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

  • 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]

  • 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.

  • How to create and use the database in the development of a mobile Web site?

    Hello

    I am a beginner in the creation of Mobile-based Web sites. So, please can someone help me as I want to use a database for a website of the mobile base. How can I proceed further on this issue? I know what database I use and how a connection can be made to it and using what language?

    Please do not respond.

    Thank you and best regards,

    Richa Bhatia

    If you are a Microsoft Developer, you can use ADO.NET to access the database.  This is because it is the technology on the server side and is running on the web server and not to the device.

    You can create your Web site by using one of the web technologies side server such as ASP.NET, JSP, PHP etc. Any technology that will serve up to HTML will work.

    When developing web sites for mobile devices, you will quickly realize that it is not a "one size fits all".  Each set of HTML markup will probably have to be customized for each of the mobile that you are eager to target.  And then, for each version of the operating system for mobile devices there are differences in sizes of rendering, JavaScript and HTML/CSS screen capabilities.

    My best analogy is thinking differences between desktop browsers such as IE5/6/7/8, Firefox, Chrome, Opera, Safari vX.Y.  Then multiply that by about 10 fold when it comes to differences in mobile browsers.

    Have a Web site that supports all mobile devices with a set of means HTML you'll probably adopt an approach more common denominator based on lowest mobile device features, you want to support.  The alternative is create targeted for each mobile user experiences.

  • 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.

  • 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.

  • 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

  • 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

  • try to reduce the database links

    Hello. Thank you for helping.


    I think my basic question is this:


    I can connect and create database links that can be used by all other users (and tablespaces?) on the server?


    I have a bad understanding of how the areas of storage, dblinks and users go together, so I'll briefly describe my setup process so you can see how I have things that can be part of the cause of my confusion, possibly in a subtle way.


    For this example, I have 2 servers with Oracle 11 g Enterprise.


    After you create a database, I then create tablespaces, users and links like this:


    On server 1:


    create storage my_app1
    create the user my_app1
    create storage my_app2
    create the user my_app2


    and so on for all areas of storage and users on the server.


    Then log in as my_app1 and create a link of database on server2:


    link_to_s2 fixed my_app3 user


    Then log in as my_app2 and create a link of database on server2:


    link_to_s2 fixed my_app3 user


    Same process on server2:


    create storage my_app3
    create the user my_app3
    create storage my_app4
    create the user my_app4


    and so on to server2.


    Then log in as my_app3 and create a database link to server1:


    link_to_s1 fixed my_app1 user


    Then log in as my_app4 and create a database link to server1:


    link_to_s1 fixed my_app1 user


    It operates well for me, except that I have to create four dblinks.


    Is everything I see how this can be simplified to create dblinks less?


    Any suggestions are greatly appreciated.

    Hello..

    Why not create a public database link.

    Documents: -.

    Specify the PUBLIC to create a public database link available to all users. If you omit this clause, the database link is private and is only available to you.
    [http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_5005.htm#sthref6315]

    Anand

  • Authentication of database through the database link

    Is it posible to use database authentication in the APEX by link of database and how?

    Also is it posible to reading user roles through the database link?

    Database links to establish the connection, so you lose the context regarding which is recorded in a single user.

    Custom authentication can do some PL/SQL you need, but I would say that replicate your tables locally through something as materialized views.

    You could also potentially be used dba_role_privs, but do not forget roles can be turned on/off.

  • SpeedGrade CC14 does not open when you use the "Direct Link to Adobe SpeedGrade... "of PremierePro CC14.

    SpeedGrade CC14 does not open when you use the "Direct Link to Adobe SpeedGrade... "of PremierePro CC14.

    I can open the SG of start menu/desktop computer and I can open the PP project in SG very well. The PP project contains 3 deadlines and I take one I want without any problem. Returning to the SG PP works fine as well. It seems only thing doesn't work does not automatically open the PP file and selecting the correct timeline in the Official Journal of the project.

    I had a glance at the "C:\Users\john Bishop images\AppData\Roaming\Adobe\SpeedGrade\8.0\logs\SpeedGrade.log ' but it is not updated when I try to use the link Direct from PP. command It updated when I invoke the start menu/desktop computer SG. Note that none of the other newspaper, the files are updated either (Plugin Loading.log, Database.txt Trace and Debug Database.txt). All these get updated when I run the desktop/start. It would appear that SG is not yet known.

    I uninstalled the SG and the PP and re-installed (all in the directories by default) and everything seemed to go OK but no change.

    I also added 2 political profile the NVIDIA Control Panel, just display a message when loading SpeedGrade.exe and another for a slightly different message when loading SpeedGradeCmd.exe. SG invoking the desktop/start causes the SpeedGrade.exe message to display. Using the 'Direct link' PP file option does not display anything, reinforcing my thought that SG is just never called from PP.

    SP1 Windows 7 Professional 64 bit

    12 GB OF RAM

    2-Intel Xeon E5640 (16 sons) processors

    NVIDIA GeForce GTX580 1536 MB memory graphics

    PS... I used the Adobe cleaning tool noted elsewhere and tried NVIDIA workarounds as well - all to nothing does not.

    Problem solved!

    My Antivirus software was in the way. Once I have updated, things work fine.

    Thanks for your help!

  • strange problem with the database link

    Hello world

    I have a strange problem with the link of database in Oracle 11 g Express Edition;
    There are two computers: computer-server and the client computer. Tnsnames.ora are the same on both computers IE.

    CT =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = krzysztof) (PORT = 1521))
    )
    (CONNECT_DATA = (SERVICE_NAME = XE)
    )
    )

    I created the database link:

    Create database link zdalny
    Connect to < user_id > identified by < password >
    using "CT".

    Customer cannot connect with server when I do not use above the command. But when I change 'use' for using "krzysztof:1521" or by using "krzysztof" or "server IP:1521" - everything is ok.

    Why I ask. Because in all the materials that I read about Oracle command with the help of "CT" should work correct. But there is no. Do you know why?

    Thanks in advance and apologize me for my English.

    Rgds
    Krzysztof

    Here's the tnsnames of your server, but to connect to the oracle server db (any client or to another instance of db oracle), you must install oracle client.
    However, in your condition, you want to connect the DB1 Oracle OracleDB2 using a link db, I'm right? In this case you should always set the entry in the tnsnames.ora
    To verify that you can connect to Oracle DB2 from DB1 Oracle, you can use tnsping in the command line.
    In your case

    c:\tnsping CT
    

    Krzysztof Szymaniak wrote: CT =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = krzysztof) (PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = XE)
    )
    )

    Check your tnsnames entry in the machine, you are trying to connect to. And check if the tnsping is successful.
    Sometimes the error message says not everything, which means that you need to troubleshoot yourself and learn from the experience.
    Always in the opposite case, refer to the documentation.

    See you soon.

    Published by: Spongebob December 14, 2011 09:30

Maybe you are looking for

  • How can I recover the index.xml file?

    I can't open a document Pages I've recently worked on. I get this message: I can't open a document, I worked on. I get the message: the requested index.xml file is missing.  What should I do? Thank you, Miriam

  • Average in the table

    I have a table in which I get some readings. I want to calculate the average of the cells that are displayed in the image. (See the image attached) Thanks in advance.

  • Series HP Photosmart C6300 disconnected!

    What this error resolved? I have problems with the Wi - Fi If I can't resolve the printer and its installation disc go in the Recycle Bin at Best Buy!

  • Lightroom 6,3 Nikon D7100 tie

    HelloWindows 10, Lightroom 6,3 Nikon D7100 new FirmewareI want to use Tethering with my Nikon D7100 functionality.But Lightroom doesn't say no camera found.The import function runs great!What can I do, or I set up my D7100 tips?Kind regardsThomas

  • Acrobat error screen, why? (see attachment)