How to synchronize database user
Hi All
I have a Database user A
I want to create a Database user B
User B is only select role
User A is update, select, delete, etc...
How to create user B which tables of user A and tables user B is the same.
Any changes of user A, user B is changed too.
Please help me!
Thanks alot
Thiensu2810
If user B owns tables, then it will have select, insert, update, delete on those tables.
Maybe user B should just have synonyms of user A tables, and select priveleges on user A tables ?
Similar Messages
-
How to preserve database user details before cloning
Hi Experts,
How to preserve database user details before cloning,
I am cloning the test database with the prod database, so my concern is how to preserve the users details which they have in TEST database( like roles, privilges, profiles , passwords, etc.....). Because that all gone after cloning from PROD.
Thanks
Samuse the following script to take the backup of roles,pwd & other details of DEV . after cloning execute the scripts back in DEV to restore the old values....
set head off
set lines 200
set pages 9999
col owner for a20
col db_link for a30
col username for a15
col host for a40
col created for a12
spool db_details.lst
select * from global_name;
select * from dba_db_links;
select name from v$controlfile;
select member from v$logfile;
select file_name from dba_data_files;
select file_name from dba_temp_files;
spool off
spool create_db_links.lst
select 'create DATABASE LINK '||owner#||'.'||NAME|| ' connect to '|| userid || ' identified by '|| password || ' using '||''''|| host ||''''||'; ' FROM sys.link$ order by owner#;
select username,user_id from dba_users where user_id in (select distinct owner# from link$);
spool off
spool alter_user.lst
select ' alter user '||username||' identified by values ' || chr(39)||password||chr(39) || ';' from dba_users;
spool off
Set verify off
Set space 0
set feedback off;
set echo off;
set pages 1000;
set lines 150;
spool create_synonym.sql
Select 'CREATE SYNONYM '||owner||'.'||synonym_name||' FOR '||table_owner||'.'||table_name||'@'||db_link||';' from dba_synonyms where db_link is not null and table_owner is not null;
Select 'CREATE SYNONYM '||owner||'.'||synonym_name||' FOR '||table_name||'@'||db_link||';' from dba_synonyms where db_link is not null and table_owner is null;
spool off;
Spool profile.sql
select ' alter user '||username||' profile '||PROFILE||';' from dba_users;
spool off -
How to setup database user for windows NT SSO
Hi,
We have a scenario where we have to setup a database user so that SSO can be worked in windows environment.
We have oracle 10g installed on UNIX server. Now we want to setup a autosys user which will also be a winows user for eg by the name kumaral and domain (which is Logon option in windows) will be FM, so eventually user name will be FM\kumaral. Autosys will be on windows machine and we have installed oracle client on this machine.
On oracle database we have created two user by following syntax:
(1) CREATE USER "OPS$FM\KUMARAL" IDENTIFIED EXTERNALLY;
(2) CREATE USER "OPS$FM\kumaral" IDENTIFIED EXTERNALLY;
Also we have provided connect grant to these users.
GRANT CONNECT TO "OPS$FM\KUMARAL".
GRANT CONNECT TO "OPS$FM\kumaral".
I am login in windows through FM\kumaral user, but we are not able to connect to oracle through this user, we are trying to connect to oracle from below mentioned query:
sqlplus /
but we are not able to connect.
Can someone please help me on this?
Thanks in Advance.
Amit.Check MOS note :
WIN: Setup O/S Authentication [ID 60634.1]
Regards
Rajesh -
How to Import Database user in oracle which have character set AL32UTF8?
Hello All,
I want export one database user which have character set in WE8MSWIN1252 and I want to Import that Database user in oracle which have character set AL32UTF8 without changing character set.
is there any argument in import command??
thanksThere's no problem, export and import will take care of character set conversions, the only problem is AL32UTF8 is a variable size character set, if 'ñ' uses 1 byte in WE8MSWIN1252, in AL32UTF8 it will use 2 bytes, so it's recommended to pre-create the tables with "char" instead of "byte": create table xxx ( col1 varchar2(100 char), ... )
Enrique -
How to restrict database user.
I need to create a database user who have only read only access to the 10g database. Is there any note which will help on this. Thanks in advance.
regards,
manishHi,
Is this an Oracle E-Business Suite database? Do you want to create a user similar to APPS with read privileges? If yes, please refer to the following link:
Read Only Schema in Oracle APPS 11i
http://oracle.anilpassi.com/read-only-schema-in-oracle-apps-11i-2.html
If you want to create just a read only database user (not APPS), grant this user select privilege only on the objects you want this user to access.
[Create Read only user for a Schema |http://arjudba.blogspot.com/2008/09/create-read-only-user-for-schema.html]
Regards,
Hussein -
How to monitor Database Users who ever is doing bulk transactions
Hi All,
We need to produce a report (daily basis ) which will provide User and Bulk Transaction details in Database to track the system.
How to state a script to perform this monitoring ?
RDBMS: 10.2.0.5.0 (64 bit)
OS: RHEL-5.2
Thanks,
TusarHi;
AFAIK there is no specific query for your issue. You can enable audit than can see what happen on your system
Regard
Helios -
How to create Database Users in Oracle enterprise?
Help, I am new in using oracle database. All I need to do is to connect PHP to Oracle. But it keeps saying this Error
*Warning: oci_connect() [function.oci-connect]: ORA-28000: the account is locked in*
Really need some help.Welcome to the forum. Please next time remember that your friends are "search option", google, thaiti... and of course oracle documentation. All ORA-XXXX are documented so please next time, search for them.
run:
select account_status, username from dba_users;
If the status is locked:
alter user XXXXXX account unlock;
If also is expired:
ALTER USER xxxxx IDENTIFIED BY password;
HTH
Edited by: Fran on 30-may-2012 2:16 -
How to grant database user to access directory under web server
Hi
I'm running forms6i application on Oracle9iAS.
This application access to several directories using WEB.SHOW_DOCUMENT procedure.
I add this directories to UserDir directive in httpd.conf and I also made an Alias (virtual path).
The problem is that all users can access to that directory.
Can I eliminate access to the directories just for particulare users?
Thank's,
TomazPl refer to the httpd.conf file
and for the directory tag assign deny all,grant all will
solve ur prob...
if possible pl let me know..
how u have configured ur forms appln on oracle 9iAS using apache
server....
i have tried but it gives me error about the forms engine..
how do i make apache server know about the forms60/f60all.cab
and other required configuration files
pl let me know at the earliest
thanks -
How to hide database user name on report
Hi,
Whenever I run my report, there is a username "HTMLDB_PUBLIC_USER" displayed on the top of the report.
Could someone tell how to hide that? If I need to chage the template for that, please guide me through the steps.
thanks in advance.
VJGo to your page template body and remove
&APP_USER.
variable.
Denes Kubicek -
How to set database user password to never expire
Hello all,
I have a linux server with Oracle 11g installed which is used primarily for testing by a few developers and QA folks. I want to set the DB user password to never expire. I have run the following (which works on a windows machine) but the password still states that it will expire in 7 days. Is there something else I can do to 'force' the pw to infinity? I've tried stopping shutting down the DB, stopping / restarting listener...
ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;
select * from dba_profiles where profile = 'DEFAULT' and resource_name LIKE 'PASSWORD_LIFE_TIME';
"PROFILE" "RESOURCE_NAME" "RESOURCE_TYPE" "LIMIT"
"DEFAULT" "PASSWORD_LIFE_TIME" "PASSWORD" "UNLIMITED"
select profile from dba_users where username='TEST';
"PROFILE"
"DEFAULT"
select username, account_status, to_char(expiry_date, 'DD-MM-YYYY') EXP_DATE from dba_users where username = 'TEST';
"USERNAME" "ACCOUNT_STATUS" "EXP_DATE"
"TEST" "OPEN" ""
Help appreciated.With 11g, Password_life_time in DEFAULT profile is set to 180days.
Default profile values in 11g.
SQL> SELECT * FROM dba_profiles WHERE profile = 'DEFAULT' AND resource_type = 'PASSWORD';
PROFILE RESOURCE_NAME RESOURCE
LIMIT
DEFAULT FAILED_LOGIN_ATTEMPTS PASSWORD
10
DEFAULT PASSWORD_LIFE_TIME PASSWORD
180
DEFAULT PASSWORD_REUSE_TIME PASSWORD
UNLIMITED
PROFILE RESOURCE_NAME RESOURCE
LIMIT
DEFAULT PASSWORD_REUSE_MAX PASSWORD
UNLIMITED
DEFAULT PASSWORD_VERIFY_FUNCTION PASSWORD
NULL
DEFAULT PASSWORD_LOCK_TIME PASSWORD
1
PROFILE RESOURCE_NAME RESOURCE
LIMIT
DEFAULT PASSWORD_GRACE_TIME PASSWORD
7
7 rows selected.Change the password_grace_time to unlimited.
HTH
-Anantha -
How to create many user in the same database
hi
my question is "How to create many user in the same database(application)?"
for example, i have students, teachers, and staffs user using my application.
i can create many users to use the same application right?, how ^^''' ???
(right now i can only create application and then it shows every data in my DB
but i want it to show only the data for the user who login to that application)
Thanks.
ps. i'm newbie, please help T^TYou need to create a user table within your application that maintains their privileges. If you have LDAP you could use this for authorisation otherwise the table would handle that as well (store passwords etc). Your reports etc would then be filtered on information from this table.
Check out some of the sample applications to see how authorisation and access is implemented (Online store is one). The how-to on the issue tracking system should also have some useful pointers.
http://download-west.oracle.com/docs/cd/B31036_01/doc/appdev.22/b28839/issue_track.htm#BABBGBJG
cheers,
Ron -
How to create a user in UME Database using web dynpro java custom application
Hi,
Can you please suggest me how to create a user in UME Database using web dynpro java custom application.
My Requirement is user can register his/her user id in SAP Portal 7.3 UME database.
Please suggest me.
Thanks and Regards,
AmitHi Amit,
Generated Documentation (Untitled)
This is what you're looking for, there's no real cook-book -- though Amey mentioned there might be some material on SDN, perhaps some tutorials.
You should be looking into com.sap.security.api.IUserFactory, methods newUser(String) which gives you and IUserMaint and commitUser(IUserMaint, IUserAccount) -- IUserAccount can be obtained using com.sap.security.api.IUserAccountFactory, method newUserAccount(String)
Hope it helps,
D. -
How to check SSO user from database?
Hi:
I've posted this topic in Forms forum:
How to check SSO user from database?
then as I've been told, it's better to post it here, so ...... here is the question:
I'm writing a "before delete trigger" to insert into log table before delete. Is there a way that I know from database the current SSO user when SSO users share one database user?
Just like in Oracle Application Express there is v('APP_USER') to know the current user.
Saad,End users are manipulating data through Oracle Forms(and SSO through portal) and the thing I need is to trace the SSO username from database without modifying forms, I mean purely from database taking into consideration that SSO users are sharing one database user. Is it possible?
Saad, -
When trying to create a new user profile service application on a new SharePoint install I get the following error:
"The specified database is not a valid synchronization database"
The installation then fails and does not create the third database.
I found some threads with similar problems but it involved upgrading an existing db. In this case we want to create a new one. Here is the relevant ULS log info:
Starting schema provisioning of SynchronizationDatabase 'SP15_TEST_ENT_SyncDB'
Provisioning the SP15_TEST_ENT_SyncDB database with the script at C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\Template\SQL\SPS\drop_procs.sql.
Provisioning the SP15_TEST_ENT_SyncDB database with a script stream.
Ensuring that the SP15_TEST_ENT_SyncDB database exists . . .
The SP15_TEST_ENT_SyncDB database does not exist.
It will now be created.
Setting the AutoClose option to False on the database SP15_TEST_ENT_SyncDB.
Setting the ArithAbort option to True on the database SP15_TEST_ENT_SyncDB.
Setting the TruncLogOnChkpt option to True on the database SP15_TEST_ENT_SyncDB.
Starting schema evaluation of existing SynchronizationDatabase 'SP15_TEST_ENT_SyncDB'
Validate Database: validating sync database
Validate Database: validation failed: Error code -2
Application error when access /_admin/NewProfileServiceApplicationSettings.aspx, Error=The specified database is not a valid synchronization database
at Microsoft.Office.Server.Administration.SynchronizationDatabase.Provision()
at Microsoft.Office.Server.Administration.UserProfileApplication.Provision()
at Microsoft.SharePoint.Portal.UserProfiles.AdminUI.NewProfileServiceSettingsPage.DoCreateApplication()
at Microsoft.SharePoint.Portal.UserProfiles.AdminUI.NewProfileServiceSettingsPage.OnOkButtonClick(Object sender, EventArgs e)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Microsoft.SharePoint.Administration.SPDatabaseException: The specified database is not a valid synchronization database
at Microsoft.Office.Server.Administration.SynchronizationDatabase.Provision()
at Microsoft.Office.Server.Administration.UserProfileApplication.Provision()
at Microsoft.SharePoint.Portal.UserProfiles.AdminUI.NewProfileServiceSettingsPage.DoCreateApplication()
at Microsoft.SharePoint.Portal.UserProfiles.AdminUI.NewProfileServiceSettingsPage.OnOkButtonClick(Object sender, EventArgs e)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Getting Error Message for Exception System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> Microsoft.SharePoint.Administration.SPDatabaseException:
The specified database is not a valid synchronization database
at Microsoft.Office.Server.Administration.SynchronizationDatabase.Provision()
at Microsoft.Office.Server.Administration.UserProfileApplication.Provision()
at Microsoft.SharePoint.Portal.UserProfiles.AdminUI.NewProfileServiceSettingsPage.DoCreateApplication()
at Microsoft.SharePoint.Portal.UserProfiles.AdminUI.NewProfileServiceSettingsPage.OnOkButtonClick(Object sender, EventArgs e)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
I Tried to create another one under a different name (databases also) and I get the same error.
The SharePoint instance has the march mandatory update installed. The sql instance we are using is an existing SQL cluster for other SharePoint poc's.
Has anybody seen this issue before?I had the same problem and could not figure out what was wrong for the longest time. I then had the idea to check in the model system database to see if there were any extra custom tables in that database. Any tables that are in the model database
are put into any new database when it is created. I had some custom tables in the model database so I deleted the custom tables in the model database and deleted the failed user profile service application and its databases and then tried to recreate
the user profile service application again and it worked with no errors -
How to create a user for a database
hi all,
in the default ORCL database (oracle 10g) how can i create a new user. i did the below steps.
1. connecting as sysdba and creating a user
2. create user kumar identified by kumar;
3. create connect,resource to kumar.
but after this when i tried to connect the ORCl database with user 'kumar' it is giving me the ora-01017 error.
please help me how to create a user to a db using sqlplus.
Thanks,
Kumar.Kumar_9985 wrote:
hi all,
im looking into wrong database. in my system along with orcl another db 'practice' is there. as both are having same ports(1521) and this 'practice' is default database when i connected as 'conn / as sysdba'. instead of this i should have been done as 'conn sys/sysdba@orcl as sysdba'.
sorry for posting this as issue.Has nothing to do with port 1521. That is not used by the database, it is used by the listener. And if you are configured properly (actually, if you are configured by default), the same listener listens on port 1521 for connection requests to all databases on the server.
If you were connecting to the wrong database with 'conn / as sysdba' it's because you had the wrong environment value for ORACLE_SID. In fact, with that connection request, you weren't useing the listener at all. When you added "@orcl", the connection request looked up "orcl" in the tnsnames file, and asked the OS network stack to pass the request on to whatever was using PORT= at HOST=. And that should have been (and obviously was) the listener.
Maybe you are looking for
-
Print ical weekly view with fewer hours
When I print iCal in a weekly view, It prints 24 hours. Obviously that isn't necessary. How can I get it to print only 12 hours or the hours I have on my schedule?
-
Need help with tricky Tomcat 5.5 .war deployment
As an example, let's say I have a .war called myWar.war. I place it in the webapps directory, and when I start tomcat, it auto-deploys it. I can access an index.html file residing in the html folder via this link http://mySite.com/myWar/html/index.ht
-
There are approximately 45 extensions installed in my ff4 which are compatible with firefox 4 the problem I am facing is that only a few just 2 or sometimes 3 extensions options appear in the add-on bar, the same is with the option tab menu. It also
-
EXCEPTION_ACCESS_VIOLATION-PLEASE-HELP
Hello forum I use win2000 with service pack4, and download Oracle9i Release 2 (9.2.0.1) but when I try to launch the universal installer that comes with the download, it start very find but when I tried next it just desapeared,just stop. Actually I h
-
Is a user guide file for the Z1 available? thanks?