Creating a new user in the same database
I have a user in my database who owns all the objects of application.This user has sysdba privilege.
I want to create a user(schema) in the same database which should also contain exactly the same objects.
But at the same time the newly created user should not have sysdba privilege.
What would be the best possible way to do this?
Can I use expdp/impdp?If yes which options should I use for expdp and impdp?
Hello,
Can I use expdp/impdp?If yes which options should I use for expdp and impdp?After exporting the source Schema (with Datapump), you may create a User on the Database with specific Tablespace and Roles / Privileges (without the DBA role).
Then, with the Parameter REMAP_SCHEMA=source_schema:target_schema, you may Import with Datapump the exported Objects into the User/Schema newly created:
http://download.oracle.com/docs/cd/E11882_01/server.112/e16536/dp_import.htm#SUTIL927
Hope this help.
Best regards,
Jean-Valentin
Similar Messages
-
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 -
Is it possible to create a new table in the master database with SSMS ?
Hello ,
I have problems with this thread :
http://social.msdn.microsoft.com/Forums/en-US/sqlexpress/thread/5153c43b-7844-41c4-a414-d14730abe435/
If no user database has been created , in SSMS , we can see only the 5 system databases ( master, msdb , tempdb... ).
Logically , the user should connect automatically on the Master database ( if the user is the same as this used to install a new SQL Server instance, this user should be sysadmin that's to say he/she has all possible permissions and especially dbcreator ).
Is it true that it is impossible to create a new table on the master database ?
I have done many researches about this possibility , all I have found is the advice : don't touch to the master database. This database is used to store critical information about the instance and its user databases. Even in the last book of Kalen Delaney
about SQL Server 2012 Internals , I have found nothing clear about the creation of tables in this database ( and what about the other system databases ? I am excluding tempdb ).
If someone has an idea about this thread and my questions , I would be thankful for a reply on this thread or on the related thread in the SQL Server Express Forum ( with my poor written English , I am not sure to have poster in a correct and understandable
way ).
If you think that this thread is not in the good forum , a moderator of this forum can move this related thread ( I have not done the move as I am not sure which is the good forum Database Engine or Transact-SQL ... )
Thanks beforehand and have a nice day.
Mark Post as helpful if it provides any help.Otherwise,leave it as it is.>>Logically , the user should connect automatically on the Master database ( if the user is the same as this used
to >>install a new SQL Server instance, this user should be sysadmin that's to say he/she has all possible permissions and >>especially dbcreator ).
If you add the current user during the installation you can have it as system admin , or you can add him/her later on
in SQL Server. BTW regarding dbcreator I have wrote some blog , need to read... :-)
http://sqlblog.com/blogs/uri_dimant/archive/2010/09/02/be-careful-to-grant-dbcreator-server-role-to-the-user.aspx
You can (if you have needed permissions) to create objects in master database, usually I create objects for instance maintenance (like rebuild indexes...)
Best Regards,Uri Dimant SQL Server MVP,
http://sqlblog.com/blogs/uri_dimant/
MS SQL optimization: MS SQL Development and Optimization
MS SQL Consulting:
Large scale of database and data cleansing
Remote DBA Services:
Improves MS SQL Database Performance
SQL Server Integration Services:
Business Intelligence -
i have an issues everytime i put my apple id and password to face time and imessage he said verifying and he goes back to where u should put ur password and wont check mark the mail and i create a new apple id the same what should i do ?
i have an issues everytime i put my apple id and password to face time and imessage he said verifying and he goes back to where u should put ur password and wont check mark the mail and i create a new apple id the same what should i do ?
-
I forgot my digital signature password. How do I create a new one with the same email.
I can not remember my digital signature password. I've attempted to create a new one with the same email address. The message I receive is that i already have a digital signature with that email. I would like to use the same email address.
You probably mean that you forgot your digital certificate password and I presume that this is a self-signed certificate that you yourself created, not a certificate that you received from a Certificate Authority (CA). If this is true then you can create a new self-signed digital certificate (Digital ID in Acrobat-speak) the same way you created the first one: In Acrobat XI it is Edit->Preferences->Signatures->Identities&Trusted Certificates->More. Then click on "Add ID" button and follow the prompts. You can create as many self-signed certificates with the same credentials (name, email, etc.) as you wish. You'd have to figure out how to distinguish them, though.
-
If i cancel an account can I create a new one with the same e-mail address?
I made an account with Game Center and I wanted to use it to get some free apps on the iTunes Store. When I tried to sign in on iTunes (for Windows) it said I had to review my details. I didn't have a credit card so I couldn't complete it and there wasn't any option for no credit card.
I wondered if I could cancel my account and create a new one with the same e-mail address. There was a discussion that you could create a new account on the iTunes Store and have the choice to not have a credit card.
Any help will help!
SuperHoopsNo, it does not, not if the creation of the Apple ID was completed, which unless you are referring to a different Apple ID I presume it did since you are posting here. And once created, you can't get apps without providing a payment method; setting up for just free apps requires a very specific procedure or a payment method is necessary. Creating an account via Game Center does not work.
If you can create a new email address (Gmail or Yahoo mail will work), take a look here:
http://support.apple.com/kb/HT2534
Read the steps carefully as the order in which you follow them is critical. Note that you can do this only when creating a new Apple ID. You cannot use an existing ID.
You will of course not be able to get anything other than the free apps without entering in some sort of payment method (credit card, prepaid iTunes card, gift certificate, etc.)
Regards. -
I have just created a new playlist, at the same time I have updated the ITunes software and that of my ITouch. My problem is that today I have been trying to edit the playlist and the edit playlist is greyed out please help.
I have been in preferences and checked manually edit etc and still no joy. I must be missing something.
SusanFrom Here http://support.apple.com/kb/HE37
I have multiple Apple IDs. Is there a way for me to merge them into a single Apple ID?
Apple IDs cannot be merged. You should use your preferred Apple ID from now on, but you can still access your purchased items such as music, movies, or software using your other Apple IDs. -
Hi Everyone,
It would be great if you can help me with the below.
Few days ago one of our content db went into suspect mode. Our DB team had resolved the issue. But one of the sites that was created probably around the same time is no more available. When I try to create a site on the same URL, I get the following
error.
Another site already exists at <URL>. Delete this site before attempting to create a new site with the same URL
When I try to delete the site or if I try to view the details of the site using Central Administration, I can find the site, but it doesn't display any details like Title, DB Name etc.
If I use stsad -o enumsites command to list ll the site, for the given site I get the following error:
<nativehr>0x80070002</nativehr><nativestack></nativestack>There is no Web named <URL>.
I am not even able to delete it using Powershell.
Please suggest.
Thanks,
UttkarshYou might be dealing with orphaned site. Go through the following blog post and see if it helps you delete the orphaned sites.
http://www.cjvandyk.com/blog/Lists/Posts/Post.aspx?ID=299
Amit -
How do I copy an existing group in Contacts to create a new group with the same contacts in it?
Hi there,
Unfortunately the use case you describe hasn't been implemented in Firefox. It's not possible to move a tab group out to its own window at this point. Generally the tab groups feature hasn't been worked on much recently, not sure why.
As to TabMixPlus, that's a third-party add-on which Mozilla doesn't directly support. You can find support links from the add-on page: https://addons.mozilla.org/en-us/firefox/addon/tab-mix-plus/
Hope this helps.
Cheers,
David -
How to create a new user aaa with same rights as existing user bbb ?
Assume user bbb already exists in Oracla 10g database.
How can I create a new user aaa with the same rights/permissions as the old user bbb?
Is this procedure/command also working if the old user is user "system" (=dbadmin)?There is some possibilty to generate a EXPDP dump file which contains only DDL statements related to account and
privileges: EXCLUDE/INCLUDE parameter can help.
For example, following EXPDP statements seem to work with SYSTEM account:
expdp / schemas=system content=metadata_only exclude=table,sequence,package,function,procedure,synonym,,type view dumpfile=DPD:system.dmp logfile=DPD:system.log
Export: Release 10.2.0.2.0 - Production on Thursday, 14 February, 2008 9:41:36
Copyright (c) 2003, 2005, Oracle. All rights reserved.
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Produc
tion
With the Partitioning, OLAP and Data Mining options
Starting "OPS$XXX"."SYS_EXPORT_SCHEMA_01": /******** schemas=system con
tent=metadata_only exclude=table,sequence,package,function,procedure,synonym,type view dumpfile=DPD:system.dmp logfile=DPD:system.log
Processing object type SCHEMA_EXPORT/USER
Processing object type SCHEMA_EXPORT/SYSTEM_GRANT
Processing object type SCHEMA_EXPORT/ROLE_GRANT
Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
Processing object type SCHEMA_EXPORT/POST_SCHEMA/PROCACT_SCHEMA
Master table "OPS$XXX"."SYS_EXPORT_SCHEMA_01" successfully loaded/unload
ed
Dump file set for OPS$XXX.SYS_EXPORT_SCHEMA_01 is:
C:\TEMP\SYSTEM.DMP
Job "OPS$XXX"."SYS_EXPORT_SCHEMA_01" successfully completed at 09:41:41
impdp / sqlfile=dpd:system.sql dumpfile=DPD:system.dmp logfile=DPD:system.logImport: Release 10.2.0.2.0 - Production on Thursday, 14 February, 2008 9:42:46
Copyright (c) 2003, 2005, Oracle. All rights reserved.
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Produc
tion
With the Partitioning, OLAP and Data Mining options
Master table "OPS$XXX"."SYS_SQL_FILE_FULL_05" successfully loaded/unload
ed
Starting "OPS$XXX"."SYS_SQL_FILE_FULL_05": /******** sqlfile=dpd:system
.sql dumpfile=DPD:system.dmp logfile=DPD:system.log
Processing object type SCHEMA_EXPORT/USER
Processing object type SCHEMA_EXPORT/SYSTEM_GRANT
Processing object type SCHEMA_EXPORT/ROLE_GRANT
Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
Processing object type SCHEMA_EXPORT/POST_SCHEMA/PROCACT_SCHEMA
Job "OPS$XXX"."SYS_SQL_FILE_FULL_05" successfully completed at 09:42:50and system.sql is:
-- CONNECT OPS$XXX
-- new object type path is: SCHEMA_EXPORT/USER
-- CONNECT SYSTEM
ALTER USER "SYSTEM" IDENTIFIED BY VALUES '970BAA5B81930A40'
TEMPORARY TABLESPACE "TEMP";
-- new object type path is: SCHEMA_EXPORT/SYSTEM_GRANT
GRANT GLOBAL QUERY REWRITE TO "SYSTEM";
GRANT CREATE MATERIALIZED VIEW TO "SYSTEM";
GRANT SELECT ANY TABLE TO "SYSTEM";
GRANT CREATE TABLE TO "SYSTEM";
GRANT UNLIMITED TABLESPACE TO "SYSTEM" WITH ADMIN OPTION;
-- new object type path is: SCHEMA_EXPORT/ROLE_GRANT
GRANT "DBA" TO "SYSTEM" WITH ADMIN OPTION;
GRANT "AQ_ADMINISTRATOR_ROLE" TO "SYSTEM" WITH ADMIN OPTION;
GRANT "MGMT_USER" TO "SYSTEM";
-- new object type path is: SCHEMA_EXPORT/DEFAULT_ROLE
ALTER USER "SYSTEM" DEFAULT ROLE ALL;
-- new object type path is: SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
BEGIN
sys.dbms_logrep_imp.instantiate_schema(schema_name=>SYS_CONTEXT('USERENV','CURRENT_SCHEMA'), export_db_name=>'BAS002.REGRESS.RDBMS.DEV.US.ORACLE.COM', inst_scn=>'1456160');
COMMIT;
END;
-- new object type path is: SCHEMA_EXPORT/POST_SCHEMA/PROCACT_SCHEMA
BEGIN
SYS.DBMS_AQ_IMP_INTERNAL.CLEANUP_SCHEMA_IMPORT;
COMMIT;
END;
/ These export and import steps don't take into account privileges granted on schema objects belonging to another user likely due to to the EXCLUDE statements.
Message was edited by:
Pierre Forstmann -
Custom workflow... creating a new user from the End User's point of view
Hello I am trying to design a new Request for the end user so that they are able to create a new user. I am having problems with my workflow at this point and keep getting the error "Missing view id." Below is my code please help me out... I am very new to this so be gentle.
P.S. All my fields are named with " view.waveset.* " where * is either accountId or firstname or any attribute I need to set
<Extension>
<WFProcess name='End User Create New User' maxSteps='0'>
<Activity id='0' name='start'>
<Transition to='Create View'/>
<WorkflowEditor x='33' y='5'/>
</Activity>
<Activity id='1' name='Create View'>
<Action id='0' application='com.waveset.session.WorkflowServices'>
<Argument name='op' value='createView'/>
<Argument name='id' value='$(accountId)'/>
<Argument name='type' value='User'/>
</Action>
<Transition to='Update View'/>
<WorkflowEditor x='107' y='81'/>
</Activity>
<Activity name='Update View'>
<Action process='Update View'>
<Argument name='type' value='User'/>
<Argument name='id' value='$(accountId)'/>
<Argument name='options'>
<map/>
</Argument>
</Action>
<Transition to='Provision'/>
</Activity>
<Activity id='2' name='Provision'>
<Action id='0' application='com.waveset.provision.WorkflowServices'>
<Argument name='op' value='provision'/>
<Argument name='user' value='$(view)'/>
<Argument name='options'>
<map/>
</Argument>
</Action>
<Transition to='end'/>
<WorkflowEditor x='296' y='83'/>
</Activity>
<Activity id='3' name='end'>
<WorkflowEditor x='393' y='5'/>
</Activity>
</WFProcess>
</Extension>I ran across the same error today. Since it's been over a month, I assume you've fixed it already or decided you didn't need it at all? What was your fix?
For me, I noted that in the sample directory, a similar "createView" call (in End User Anonymous Enrollment) also includes this argument:
<Argument name='viewId' value='User'/>
When I added that to my createView call, the "Missing view id" error went away, and the user are gets created.
I'm not entirely comfortable with the value specified, though; seems like view IDs should be more unique. I would have thought it should have been something like this instead:
<Argument name='viewId' value='User:$(accountId)'/> -
Create a New Contact in the same window
Hi Folks,
I want to create a New Contact from the Quick Create Link and want it function in the same way that the "New" / "Copy" Button functions
Currently:
Quick Create Link opens a Contact in a New Window.
Requirement:
Contact should open in the same window. Also, I want this function to work from the Quick Create Link on the Action Bar.
Any thoughts? can we achieve this using some javascript?
Thanks,
Royston
Edited by: Royston Goveia on Nov 11, 2011 12:51 AMFixed, used javascript.
Regards,
Royston -
How do I create a new website using the same format as my last one?
I created a site last year and now I want to use the same templates for blog, photos, albums, etc. as last year's. In other words, I'm looking for a "save as" where I can add new content but not have to re-format everything. Thanks for helping.
Welcome to the Apple Discussions. Open iWeb so you see your original site in the left hand pane. Use the File->New Site menu option to create a new site. Give it the name you want.
Now select a page in your original site and type Command+D. That will duplicate the page. Drag the duplicate page down to the new site and rename it as needed. Do that for the other pages you need in the original site.
OT -
PL/SQL web service--all users share the same database session
Hi, Is anyone else running into this? If I set a package variable in a pl/sql package through the web service from one client and then connect with another client, I can see the value of the package variable set by the first client. So it appears that instead of being 'stateless', as the documentation claims, that all users are actually connecting to the very same session--and sharing the same memory and variable values.
When I test my application by myself, I don't run into any problems. But the application I'm working on allows over 1000 students to select dorm rooms concurrently. The timing for that large a group is fine enough that I do have more than one person executing the same section of code simultaneously. This is a serious problem! I'm going to try using pragma serially reuseable on my packages to see if that will take care of it.
Has anyone else run into this problem? What do you do about it? Is this an issue with the web service? Or the application server?Hello!
I have a question. You seem to be getting somewhere. In the reference (in your post) there is no mention of web.xml Is it a generated file or a file created by you? I am getting IOException error when generating EAR file. What could be wrong? Please help
TAI
habeeb -
How can I create a new User with the Java API like OIDDAS do?
Hello,
I'm currently working on an BPEL based process. And i need to create an OCS user. So far I can create an user in the OID. But I cant find any documentation about given this user an email account,calendar and content function etc.
Did anybody know if there are some OIDDAS Webservices? Or did anybody know how to do this using the Java APIs?You are asking about a Database User I hope.
You can look into the Oracle 8i Documentation and find various privillages listed.
In particular, you may find:
Chapter 27 Privileges, Roles, and Security Policies
an intresting chapter.
You may want to do this with the various tools included with 8i - including the
Oracle DBA Studio - expand the Security node and you can create USERS and ROLES.
Or use SQL*Plus. To create a
user / password named John / Smith, you would login to SQL*Plus as System/manager (or other) and type in:
Create user John identified by Smith;
Grant CONNECT to John;
Grant SELECT ANY TABLE to John;
commit;
There is much more you can do
depending on your needs.
Please read the documentation.
-John
null
Maybe you are looking for
-
hi releasing to accounting document in vf02 transaction code error showing eRROR IN ACCOUNT DETERMINATION table T030k key MCA ZWS, but i created zws account key and i assinged proper account . any body give me mail id i will send full screen shots
-
Apple TV not working since new Time Capsule...Sync
I bought myself a new 1TB Time Capsule yesterday and set it up fairly easily. However, I notice now that I cannot sync my TV to my iMac anymore. It says: The Apple TV "Living Room Apple TV" is not repsonding. Check that any firewall software running
-
I am getting a ridiculous amount of strange people contacting me, some of them vulgar, I tried to set all my settings to "Only Allow Contacts" but when I click save, the window closes and the settings dont change. Unknown people are still contacting
-
BAPI_PO_CHANGE - Need to change POLIMITS table
Hi, We have a requirement to change the Expected Value in the PO screen for a set of POs. This Expected Value is coming from Shipment doc and the details are availbale in POLIMITS table in BAPI_PO_CHANGE. We thought of updating the field EXP_VALUE in
-
Hi, so far everything was fine... But when I run the App and click the "New Order" or when I click "Save" in the Edit Form I get this error. Fehler: Cannot create an object of type:oracle.jbo.domain.Date with value:anonymous Please, can someone