grant create any link to user1 database?

Hello. Thank you for helping.


Is there a way to do something like this:


grant create any link to user1 database?


I tried to create a link of database from a procedure, but has been an error: insufficient privileges.


Any suggestions greatly appreciated.
SQL> @dblink.sql
SQL> CREATE OR REPLACE PROCEDURE NEW_LINKS
  2  AS
  3  NEWSQL VARCHAR2(32000) := 'CREATE PUBLIC DATABASE LINK BCM_LINK USING '|| CHR(39) || 'BCM' || CHR(39);
  4  BEGIN
  5  DBMS_OUTPUT.ENABLE(10000);
  6  DBMS_OUTPUT.PUT_LINE(NEWSQL);
  7  EXECUTE IMMEDIATE NEWSQL;
  8  END NEW_LINKS;
  9  /

Procedure created.

SQL> exec new_links;
CREATE PUBLIC DATABASE LINK BCM_LINK USING 'BCM'
BEGIN new_links; END;

*
ERROR at line 1:
ORA-01031: insufficient privileges
ORA-06512: at "DBADMIN.NEW_LINKS", line 7
ORA-06512: at line 1

SQL> --
SQL> GRANT CREATE PUBLIC DATABASE LINK TO DBADMIN;

Grant succeeded.

SQL> --
SQL> exec new_links;
CREATE PUBLIC DATABASE LINK BCM_LINK USING 'BCM'

PL/SQL procedure successfully completed.

SQL> --
SQL> REVOKE CREATE PUBLIC DATABASE LINK FROM DBADMIN;

Revoke succeeded.

SQL> GRANT DROP PUBLIC DATABASE LINK TO DBADMIN;

Grant succeeded.

SQL> DROP PUBLIC DATABASE LINK BCM_LINK;

Database link dropped.

Tags: Database

Similar Questions

  • GRANT CREATE ANY TABLE

    Hello
    in 10g,.
    If I have:
    GRANT CREATE ANY TABLE to user1;
    then:
    1 - user1 can create a table in any schema and remove any table in any schema?

    2-can we user1 create a table in any schema and drop any table from only its own schema?

    Thank you.

    just give a try if you have a test database.

  • need help create active links in a database

    I want to create active links to web addresses stored in my Access database and returned on the details of a set of master/detail page. The following code returns the correct entry of the database field - but I can't seem to make an active link.

    < % is (rsNameMasterDetail.Fields.Item("Link"). % of the value) >

    any help would be appreciated!
    Thank you
    emyers

    >< %="(rsNameMasterDetail.Fields.Item("Link")." %="" de="" la="" valeur)="">
    >
    > any help would be appreciated!

    <>
    (href='<%=(rsNameMasterDetail.Fields.Item("Link"). % of the value) > ' > < % = (rsNameMasterDetail.Fields. Item ("Link"). % Value) >

    - Darrel

  • Data pump grant create any directory

    Hello

    I 've created the directory to use utility EXPDP as below.

    SQL > CREATE DIRECTORY test_expdp AS ' / export/oracle / ";

    1)
    SQL > GRANT READING, writing ON DIRECTORY test_expdp to THE System ;

    With grant command above to the directory of the user of the system, it is sufficient to take the backup of the entire database , just?.

    If I take backup sage schema , gets the backup generating right, since I gave the SYSTEM grants the user.

    2)
    SQL > GRANT READ, WRITE on DIRECTORY test_expdp TO public ; Give it will give to all users? Otherwise, how to give some grants to all current users of in database, which can take wise on sys backup system or scheme.

    3)
    Can I use utility impdp to import a file, the file that generated using utility exp.?

    Therese says:
    Hello

    I 've created the directory to use utility EXPDP as below.

    SQL > CREATE DIRECTORY test_expdp AS ' / export/oracle / ";

    1)
    SQL > GRANT READING, writing ON DIRECTORY test_expdp to THE System ;

    With grant command above to the directory of the user of the system, it is sufficient to take the backup of the entire database , just?.

    Yes

    If I take backup sage schema , gets the backup generating right, since I gave the SYSTEM grants the user.

    2)
    SQL > GRANT READ, WRITE on DIRECTORY test_expdp TO public ; Give it will give to all users? Otherwise, how to give some grants to all current users of in database, which can take wise on sys backup system or scheme.

    Give the grant to the public is to satisfy all users.

    3)
    Can I use utility impdp to import a file, the file that generated using utility exp.?

    No, this is not possible.

  • Of FUNDING and dynamic SQL CREATE ANY TABLE

    Hi gurus,

    I have a dynamic SQL code in a procedure where a table to an existing table without data will be created.

    strSQL: = "create table ' | strTemp | ' in select * from '. strArc. "where 1 = 2"; "
    Execute immediate strSQL;


    without GRANT CREATE ANY TABLE to user, * "ORA-01031: insufficient privileges" * error executing. "."

    Is there a way to tackle this problem without providing a GRANT CREATE ANY TABLE privileged?


    Thank you very much
    Charles

    (1) why you are creating a table to run? Which seems to me very concerning. If you create a temporary table and you're accustomed to work how temporary tables in other databases, I would strongly suggest you look at how Oracle manages global temporary tables. If temporary storage is really necessary (99% of the time is not because of the consistent reading multi-version), you should be able to create global temporary tables a few during execution.

    (2) the owner of the procedure should just need the CREATE TABLE privilege granted directly to the user (not granted through a role), assuming that it is in stored procedure a standard DEFINER rights.

    Justin

  • grant, create and drop objects on the diagram to a role/user

    Generic question for Oracle RDBMS:

    As far as I know, there is no way for the owner of a schema privileges such as create objects, or drop objects in this schema to a user or a role.

    I know that a lot of people always asked if it is possible, and I hope Oracle will provide this capability, but as far as I know, it is not possible, even in 12.1.0.2.

    Does anyone have ideas on this?

    I considered to have developers to create programs to create tables, views, packages, etc. and then grant execute on them to the users/roles, but it would be a huge amount of work.

    Did someone come up with an easier way to do this?  Or know of a way that this can be done?

    Obviously, I can not grant create any table, index, package, view, etc., or to delete any table, view, etc., and of course we grant the DBA role.

    I thought that the 'become a user"was a solution, but it is apparently far from able to do such things.

    In our case, apparently, we have users log in with account of the owner of the schema and create objects, modify objects, etc.  (Change the objects is not a problem, because we can give everything on the object to someone.)   The problem is that we need to prevent people to connect to shared group accounts (or as the owner of the schema record) to create objects, drop objects, etc.).  We all have as their own user name and will not be able to create and delete objects in patterns of selection.

    Why must everyone CREATE and DROP of objects within the framework or the processing of information on the day the day?

    I feel a serious design flaw & conversion Orace DB.

  • Could not create the link of database of the schema of the ORA/APEX

    Hello

    I tried to create the link of database for my schema oracle on my localhost and it brings me an error "database user has sufficient privileges for the proposed operation.". I don't know what the problem is?

    This pattern of localhost was created for APEX.

    Thank you

    I tried to create the link of database for my schema oracle on my localhost and it brings me an error "database user has sufficient privileges for the proposed operation.". I don't know what the problem is?

    This pattern of localhost was created for APEX.

    What is developer Sql has to do with the problem? This forum is ONLY for sql developer questions.

    If this isn't a problem with Sql developer please mark ANSWERED thread and repost it in the general forum of the database

    Database General Discussions

    The exception is you say the problem: the user you are using to create the DB link doesn't have the necessary privileges to create the DB link type you are trying to create. Privileges are required on the source and target databases.

    When repost you, you will need to provide:

    1. your full 4 DB for DBs source and target text segment

    2. a copy OF the sql * plus (or other) session you use to create the DB link

    3. information on the user that you use to create the link DB - including the privileges that have been granted to this ulser

    4 information on the type of link DB you try to create

  • Create the link of database error

    Hi all

    I am trying to create a database link (developer both SQL and Sql * more) and I get the error ORA-00933: SQL not correctly completed command.

    Here is the statement:

    CREATE DATABASE LINK msrtp CONNECT TO msrtp_user IDENTIFIED BY 62ROLDS USING msrtp;

    Yes, the global database name is msrtp and I created links db without any problem.

    The problem, it's because the password begins with a number. I have no control on the password and can not change. I tried enclosing in single and double quotes, but it does not work. Is there one way around this other than to change the password?

    Oracle 10g

    Thank you.

    Try to put the password in quotation marks. I created a link using quotes around the password and I was able to choose to use it. With 11g and passwords case-sensitive using double quotes may be necessary at least for the mixed case passwords.

    HTH - Mark D Powell.

  • Create database link between two databases?

    Hi all

    Can someone tell me how to do?

    I have two databases in oracle 9i: 'mydb' & 'mydb1 '.

    mydb contains a table 'tab1' with a single domain (of the int data type) and mydb1 contains a table "tab2" with two fields (int, char).

    I tried to do this:

    System is one of the usernames and another username is olapsys
    Manager is the password of the system, and olapsys got the password = myolapsys

    I tried to create a link, but it gave me an error:

    CREATE DATABASE LINK mylink access the system identified by the Manager using "mydb.tab12";

    then I tried running this query in olapsys:

    Select * from tab12@mylink;

    Error:
    ORA-12154: TNS: could not resolve service name

    Help, please.

    Thank you and best regards,

    Lucky

    CREATE DATABASE LINK mylink to connect to the system identified by the Manager using "local service alias ';

    where local service alias is the name of the local service that you configured in the tnsnames.ora to connect to mydb1.

  • Link between Oracle database 10g and Oracle database 11g database

    We have a database from Oracle 10 g to which connect us with SID = mod

    The TNS names file is present in the directory Oracle NETWORK\ADMIN on the development computer contains the following two entries among others

    MOD =

    (DESCRIPTION =

    (ADDRESS_LIST =

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

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

    )

    (CONNECT_DATA =

    (SERVICE_NAME = mod)

    )

    )

    NEWMOD =

    (DESCRIPTION =

    (ADDRESS_LIST =

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

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

    (LOAD_BALANCE = yes)

    )

    (CONNECT_DATA =

    (SERVER = DEDICATED)

    (SERVICE_NAME = MOD)

    )

    )

    In the SQL client we can log on to the mod and newmod each with its own username and password.

    To create a link of database as follows

    CREATE newmod CONNECT TO DATABASE LINK Public user1 IDENTIFIED BY password1 USING 'newmod ';

    the database link is created without problems.

    However, in trying to retrieve data from tables in the database that uses 10.70.10.7 and 10.70.10.9 using a command like

    Select Column1 table1@newmod;

    We get the following error:

    ORA-12154: TNS: could not resolve the connect identifier specified

    How can access us the tables at the entrance to tns newmod because it resides on a server 11g, while tns mod entry is on a 10g Server? (both use the same service name, but are located on different ip addresses)

    Your help is very appreciated.

    Have you set TNS_ADMIN variable? Check if you have any additional TNSNAMES file. ORA in your ORACLE_HOME files.

    Point A of TN-entry NEWMOD to a host. Load Balancing is not needed.

    Try to create the dblink with the connect descriptor.

    create database DB_TEST link to connect to SCOTT

    identified by "password" ' (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = 10.70.10.9)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = MOD)))';

    Kind regards

    Suntrupth

  • As sysdba, how to grant create table to a user for a particular tablespace?

    I did the PRACTICE tablespace and user SEAN. How can I give SEAN the privilege to create a table in the practical tablespace?

    CREATE TABLESPACE PRACTICE
    DATA FILE
    ' F:\DBM\FALLB\DB2046\ORACLE\ADMIN\ORAC...
    SIZE 20 M
    DEFAULT STORAGE OF DICTIONARY OF MANAGEMENT MEASURE (1 M INITIAL FOLLOWING 1 M MAXEXTENTS 20 PCTINCREASE 0);

    CREATE USER SEAN
    IDENTIFIED BY SEAN
    PRACTICE OF TABLESPACE DEFAULT;
    GRANT CREATE SESSION TO SEAN;

    -----------------------------------------------
    -----------------------------------------------
    SEAN GRANT SYSDBA;
    +
    Sean/[email protected] CONNECT as sysdba

    Works, but what happens if I don't want SEAN have sysdba privileges?

    -----------------------------------------------
    -----------------------------------------------
    Another question would be if I don't give SEAN sysdba privileges and then I connect like sean and then perform a
    SELECT * FROM TAB;
    to display the available tables, how can I do so that I can only see the paintings I do myself instead of all tables in the database?

    Hello

    Connect as sys and grant after privs to SEAN, I added a few privileges as well.

    Do not give any user other than SYS sysdba priv, unless you intend to use user SEAN as a user administrative addition to SYS.

    GRANT RESOURCE TO SEAN;
    GRANT CONNECT TO SEAN;
    GRANT CREATE SESION TO SEAN;
      -- GRANT UNLIMITED TABLESPACE TO SEAN;
    GRANT CREATE VIEW TO  SEAN;
    GRANT CREATE PROCEDURE TO SEAN ;
    GRANT CREATE TABLE TO SEAN
      -- 1 Tablespace Quota for SEAN
    ALTER USER  SEAN QUOTA UNLIMITED ON PRACTICE;
     
    

    Concerning

  • Bug trying to create the link with the Cyrillic characters in URL

    I'm transforming words in my text on the links, but with Cyrillic characters in their URL (such as https://en.wiktionary.org/wiki/ хорошо). The problem is that, depending on how create the link, the page refuses to accept the URL.

    It's my preferred method (which accepts not the Pages):

    1. Write or select the text to be transformed into link;
    2. Press cmd + k;
    3. Paste the URL (https://en.wiktionary.org/wiki/ хорошо) in the field;
    4. Hit enter or click out;
    5. When I check the link, it is www.apple.com.

    The strange is that other methods work very well.

    1 against nature (accepts Pages):

    1. Delete my word;
    2. In its place, paste the URL (https://en.wiktionary.org/wiki/ хорошо);
    3. Hit the space bar (a link is created automatically with the correct URL);
    4. Edit the link that is created and change its text;
    5. When I check the link, he kept correct.

    2 against nature (accepts Pages):

    1. Write or select the text to be transformed into link;
    2. Press cmd + k;
    3. Find a way to build a version with my URL (https://en.wiktionary.org/wiki/%D1%85%D0%BE%D1%80%D0%BE%D1%88%D0%BE) escape sequence;
    4. Paste the URL with escape sequence in link field;
    5. Hit enter or click out;
    6. When I check the link, ironically, is хорошо https://en.wiktionary.org/wiki/.

    To stretch more:

    1. Editing a link created successfully (with any success methods above);
    2. Changed its URL (from хорошо https://en.wiktionary.org/wiki/ to https://en.wiktionary.org/wiki/ плохо)
    3. Hit enter or click out;
    4. When I check the link, it's still хорошо https://en.wiktionary.org/wiki/;
    5. Finally edited and changed its URL still once, now remove the Cyrillic (https://en.wiktionary.org/wiki);
    6. Press enter, click out and he finally accepted the URL.

    Pages seems to be denying the creation of links with the URL that contains Cyrillic characters (only?), but exclusively through his little creation of link popup. I think it's a simple problem, but I'm sure it's very annoying.

    Everyone knows the same?

    Cyrillic characters in the range of table encoding UTF-8 code points u + 0400 - u + 04 FF are represented by two bytes. These people must be encoded as a percentage (read the two paragraphs of the current standard of article), as the Pages v5.6.2 will convert automatically URI to this encoding for you in the link Inspector. It will simply ignore what it considers incorrect URI links, they are Cyrillic, or even English.

    Use what is easier for you, and that Pages v5.6.2 accepts.

  • When I create a link in WordPress it will not open the link in a new window

    Hello
    I've been creating websites in WordPress for a few years and still today, I find that when I create a link to open it in a new window using Firefox as browser the link just opens again the same page

    This is the code: -.
    "< a title ="learn more"href ="http://socialmediatrainingjob.info/mainsq"target ="_blank"> here < /a > to find out"

    "< a title ="more"href ="http://socialmediatrainingjob.info/mainsq"> fred."

    The 'fred' link will go on the site that you want, but "find it out here" is going nowhere.

    These links behave as they shoul when I use Internet Explorer and Chrome

    Any ideas how to fix this for Firefox, my version is 17.0.1

    Concerning
    Allan

    Hello

    Thanks Jscher it waqs a add on called 'Adblock Plus 2.2.1' as soon as it was turned off everything was back to normal. Just to prove it I active re and the problem comes back. So I completely removed.
    Funny, is that I never actually installed it in the first place

    Thanks for the correction of a problem tips

    Concerning
    Allan

  • my firefox has been updated yesterday, and since then I can't copy any link in a text of the e-mail, more. I drag the address of the page, but the link does not work. Thank you.

    my firefox put updated yesterday, and since then I can't copy any link from a web page in an e-mail message more to send. usually, I could drag the address of the page and it automatically copied the blue link and it could open. now, it does not work. I use gmail, but I don't think it is related to the post.

    In Firefox, you usually use a string as button in the toolbar all foregoing enamel make up the zone Editor to create a clickable hyperlink.

    Sometimes, it happens automatically if you send the message, but I've never seen this in Firefox when you compose a message.

  • How many accounts mail can I create a link to windows live mail.

    Original title: using windows live mail to access my hotmail and gmail accounts

    I use windows live mail to access my hotmail and gmail accounts. How many accounts mail can I create a link to windows live mail.

    Is that these individual e-mail accounts overlap in windows live mail. Can any body hack emails which is a sender to one of these accounts.

    Madhu Sudan Modak

    MSM

    As much as I know there is no absolute limit.  The number of accounts depends on many variables.  I can say that it is over 25, which is what I have.

    Not sure what you mean by "are these...". can overlap in WLM"you be more specific?

    Any email can be hacked given enough time.

Maybe you are looking for