Creating user in several databases
Hi allI want to create a user in several databases (100 +)
Could someone can share the script.
Oracle DB Version - 9.2.0.6,9.2.0.7 & 10.2.0.2
OS - Hp Unix.
Kindly help out me of this.
Thank you
RAM.
Since you need to connect to all databases individually, I'm not sure that any script would be of no use. And besides, it's just a command then why you want as a script? The best way of IMO would be to configure the EM (Grid Console) and make the creation of the user from there.
Aman...
Tags: Database
Similar Questions
-
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
ArchanaBravid 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.
-
Create users on several iDRAC via command line?
Howdy,
We have a bunch of servers with iDrac on them, and we want to create a standard user on each of them. Is it possible to do using the command racadm or anything else that would let me run a script from a central computer and have it add the user to all of our different servers, so I don't have remote for each of them individually?
Maybe this could be combined with Powershell invoke-command command to do?
Also, can someone tell me the simplest way to create a user using Racadm if that's what I use to do this? I'll put the uesrname, password and make a user admin.
Thank you!
You can use the remote racadm commands to create the iDRAC users. Here is the command that should be used.
racadm - r
u Pei config cfgUserAdmin g - I o cfgUserAdminUserName racadm - r
u Pei config cfgUserAdmin g - I o cfgUserAdminPassword racadm - r
u Pei config cfgUserAdmin g - I o cfgUserAdminPrivilege 0x1ff racadm - r
u Pei config cfgUserAdmin g - I o cfgUserAdminEnable 1 -
Hello
I'm running Oracle XE (10g) and now want to migrate to XE 11 g. For this I want to export my data residing in multiple schemas. My question is if it is possible to export and import my patterns without having to create manually user in the destination database? One of the reasons is I do not know the passwords of all schemas and I don't want to change one of them. If I manually create users in the database of the destination I want to assign new passwords.
Thanks in advance,
Habib>
One of the reasons is I do not know the passwords of all schemas and I won't change an any of them
>
You can use the EXPORT COMPLETE as Fran said.
However, you don't have to create passwords if you need to create the same users. You can just copy the passwords of the source
Run on the source database
SQL> SELECT USERNAME, PASSWORD from DBA_USERS WHERE USERNAME ='SCOTT'; Then create the users in destination like below ALTER USER SCOTT identified by values '
' ; SQL> SELECT USERNAME, PASSWORD from DBA_USERS WHERE USERNAME ='SCOTT'; USERNAME PASSWORD ------------------------------ ------------------------------ SCOTT F894844C34402B67 SQL> alter user scott identified by values 'F894844C34402B67'; User altered. A simple way is to generate the script SQL> SELECT 'ALTER USER ' || username || ' IDENTIFIED BY VALUES ' || chr(39) || password || chr(39) ||' ;' from dba_users where username in ('SCOTT', 'A', 'B'); (chr(39) = single quote. Just did it for readability. You can even do it as you normally manipulate quote within strings. and just run in the target database.
-
Value UDF user not multiplication of database after creating user
Hello
We have created 120 UDF to create the profile in IOM and published the sandboxes. (UDF created in the designer in the sysadmin console, add the UDF Create User page)
The UDF do not appear in the database. But after creating user (which is a success), I don't see the UDF values we have input during the creation of the user did spread to the database. We are sure that we checked for the correct UDF in the database.
Please let me know the possible cause to this question. I checked the logs and see no error while/after creating the user.
Please help as to what causes this problem and what can be the possible solution.
OIM 11 g R2 (11.1.2.0 - BP08)
-Thank you.
Abhished,
Please do not mention the link. It is false. When you create a UDF file to create a user Page, the data component should be the component data - catalog and not the component data - user management.
Thank you
-
Create a user in 100 databases
I need to create a user in 100 databases. Manually connecting to 100 databases and creating a user are very difficult for me...
So is it possible to do this easily?You can try (assuming you have the common system on all databases password)
(1) take a database in this ORACLE_HOME keep all entrances to tns in your environment.
$ORALCLE_HOME/network/admin/tnsnames.ora--->Should mentions tns and all databases(2) a list of all the databases in a single file say dblist.lst
Cat dblist.lst
Test1
test2(3) create a sql file that contains the result of a command; CREATE_USER. SQL
Cat create_user.sql
trigger the echo
set the position
create useridentified by default tablespace of ;
grant create session to;
other privileges(4) keep the environmental variables of the ORACLE_HOME, path to the file say env_ORACLE
(5) shell script should like
because I in 'cat dblist.sql '.
do
. //env_ORACLE
sqlplus-s system /@$i @create_user.sql
fact -
Create read only user to the database
Hi all
I need to create read only the user to one of the databases so that he should have the select query on all tables, views etc...
Can I create a user of this type with the role OEM_MONITOR at once?
Please advice
Concerning
ArunNo.:
SQL> select * from v$version; BANNER -------------------------------------------------------------------------------- Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production PL/SQL Release 11.2.0.1.0 - Production CORE 11.2.0.1.0 Production TNS for Linux: Version 11.2.0.1.0 - Production NLSRTL Version 11.2.0.1.0 - Production SQL> create user toem identified by toem; User created. SQL> grant oem_monitor to toem; Grant succeeded. SQL> select count(*) from hr.jobs; COUNT(*) ---------- 19 SQL> connect toem/toem Connected. SQL> select count(*) from hr.jobs; select count(*) from hr.jobs * ERROR at line 1: ORA-01031: insufficient privileges SQL>
Grant select ANY TABLE might work, but note it is generally regarded as a bad security practice:
http://download.Oracle.com/docs/CD/E11882_01/network.112/e10574/guidelines.htm#CHDHFIFGEdited by: P. Forstmann on March 8, 2010 21:31
-
Creating user database form and by inserting the username, password to a table
Hi all
Help me anyone how to do the following tasks from10g.
Creating user forms data and inserting the name of user, password, and other data to a specific table.
ArifHello
I think the guy gave you automated statements that you do not get :) Try this simple...FORMS_DDL('CREATE USER YOU_USER_NAME IDENTIFIED BY YOUR_PASSWORD'); -- Replace the user and pass variables upon your requirement. FORMS_DDL('GRANT CONNECT, RESOURCE TO YOUR_USER_NAME'); -- Or any role you want to set...
-Clément
-
Licenses of the impact on several databases
Licenses of the impact on several databases
We want to create a separate database for one of our departments, we do not want manage their calls and call volumes, in our Technical Service.
Infra allows this, but what is the implications of the license when you do.
Do you need a key to separate license for users on the new system or it will pick up the license on the normal system file
and deduct the totals of this licenses when new users connect?
Kind regards
Christians of MerlinHello
We asked VMWare this question last year. Basically, you are allowed to install VSM systems as much as you want to test/development purposes but each live/operational system requires it's own license (from a license point of view).
Hope that helps
Mick
-
How to know all queries executed by users of the database?
Hi all
I am new to Oracle. I created a database (version 10.2) and several users in this database. I would like to know how to record in a database table all queries executed by users of the database.
Thank you.I would like to know how to record in a database table all queries executed by users of the database.
activate SQL_TRACE for each session, but such an effort cost more than any advantage gained.
-
Cisco ACS 4.2 a user in several local groups
Currently, I like this group map
ACS groups window
GRP of GRP-A-B-1 and PDM - 2
GRP - A. GRP - 1GRP - Grp-2 B
For example currently a user test1 is part of two groups 1 and 2 under windows and is mapped to the Grp-A-B of the CSA. Is it possible if I delete the mapping of Grp-A-B in ACS and can see the user test1 speratley in both groups (Grp - A and Grp - B) to GBA?
Salam Muhammad,
If you have a local user in ACS, this user cannot be a member of both groups at the same time.
The same concept applies to external users. They cannot be mapped to two different groups at the same time.
If you delete the configuration of Grp-A-B, the test1 user will be mapped to the first group in the list because ACS 4.2 process mapping group in the order:
' the snip "'
Order of group mapping
ACS always maps users to a single group of TISA. However, a user can belong to several groups the group mapping. For example, a user named John could be a member of the ensemble of the engineering group and California, and at the same time be a member of the combination of Group Engineering and management. If the value of group ACS mappings exist for these two combinations, ACS must determine what group John should be affected.
ACS prevents contradictory group set mappings by assigning an order of mapping for the whole group maps. When a user who is authenticated by an external user database is assigned to a group of ACS, ACS begins at the top of the list of groups for this database mappings. ACS sequentially checks group memberships of user in the database of the external user against each group mapping in the list. Where to find the first set group mapping corresponding memberships to external users in the user database, ACS assigns the user to the group this group map ACS and ends the process of mapping.
' the snip "'
Reference:http://goo.gl/cvc474
HTH
Amjad
Rating of useful answers is more useful to say "thank you".
-
ACS SE several databases Windows
Hello
is it possible to have several databases of windows on a SE of GBA? The problem is that we need to access two areas of differentiation, which are not approved and have no great area.
Thanks a lot and best regards
Dominic
Hello
We would require both approval of external/transitive way between the two domains.
There are 2 ways to work around the problem:
1. install an another ACS to the remote site/domain and route all the
applications for users of the remote domain to the ACS.
2 configure the partner domain as LDAP on GBA (Corp. website), this should not require domain trust. The only problem that we will have some authentication methods is not supported when using ldap.
Here is the complete list of stuff that is supported by LDAP:
http://www.Cisco.com/en/us/docs/net_mgmt/cisco_secure_access_control_server_for_windows/4.1/user/Overvw.html#wp824733
Hope that helps!
Kind regards
~ JG
Note the useful messages
-
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
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
-
An Oracle_home to several databases
Hello
It is with respect to Oracle e-Business.
Can we create an Oracle_Home to host multiple databases? I'm sure that it works for non-Ebiz environments.
But if we have an ORACLE_HOME host several databases, what are the consequences so that cloning?
Thank you
SP
You cannot share the ORACLE_HOMEs for EBS databases - each instance requires a separate ORACLE_HOME/dedicated. What business or technical problem are you trying to solve?
-
Install several Database 11 g 2 on Windows Server 2008
Dear,
Please guide me how to install several (test + demo) database in a server and please give me the details how to manage Services for several databases in windows 2008 server.
Kind regards
Jaffer Ali
Jaffer Ali wrote:
Dear,
If it please guide me how to install several (test + demo) database in a server & please provide me with the details of the management of Services for several databases in windows 2008 server.
Kind regards
Jaffer Ali
Despite the remarks about oradim, you will generally need to run explicitly. Take your question at face value, the procedure is quite simple:
1. install the oracle RDBMS software
1.1 you can choose to have a database created as part of the installation, or not. If you choose to create one as well as the installation, the installer will call the utility "dbca" once installation is complete. DBCA is "Database Configuration Wizard" and utility oracle for creation, deletion and some configurations of databases. This makes things easier, but everything can be done manually by calling "oradim", then from sqlplus and issue of an appropriate CREATE DATABASE statement followed invocation of several sql scripts located in ORACLE_HOME\rdbms\admin.
2. to create a database after the software installation is complete (your first database, or an extra), just run the utility "dbca.
The dbca utility will take care of configuring the necessary Windows services.
Maybe you are looking for
-
I just bought the last Apple TV - I can't seem to connect with the App Store and Siri is completely useless. This is an example of how Apple is unable to produce a useful product?
-
Satellite M50-182: control computer hardware - can't see CPU temp
Hello I have the Satellite M50-182. I installed the computer Hardware Control 1.10 Beta 02. I can't see my CPU Temp. Can someone help me. Thank you
-
Hello. I have a big problem. I like to run chrome in Visual Basic (run in the vb as a webbrowser). Thank you. Help me
-
Error loading c:\WINNT\otifgmic.dll
Whenever I start my computer, I get an error message box that says: error loading c:\WINNT\otifgmic.dll the specified module is not found. It has a 'OK' button, which I click, and then I can use the computer without a problem. I ran Malwarebytes a
-
Error printhead HP Photosmart 7520
So I bought a HP Photosmart 7520 over 3 months ago and about 2 weeks ago I got an error saying that there is a print cartridge error. I could get of it and fine print, but it is gradually degraded until whenever I turn on the printer it says that the