Dropping users and their objects
Is it possible to drop users and their objects (default tablespaces, stored procedures, etc.) ?
... because it drops what they own, and they don't own the default_tablespace, it might be used by lots of people.
Similar Messages
-
Import all users and their objects without doing full database import
Hi Guys,
I have a task to that involves Importing all existing users and their objects in production to the test database without doing a full database import - Please how do i do this?
Pls i need your help urgently.SQL> select * from v$version;
BANNER
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Product
PL/SQL Release 10.2.0.1.0 - Production
CORE 10.2.0.1.0 Production
TNS for Linux: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production
I tried to import objects and data from a user from a FULL dump file. File was created with the following command:
server is: SQL*Plus: Release 10.2.0.1.0 - Production on Wed May 26 15:34:05 2010
exp full=y FILE="full.dmp" log=full.log
Now I imported:
imp file=full.dmp log=full.log INCTYPE=SYSTEM
imp fromuser=user1 file=full.dmp
Results: not all the user procedures have been imported:
SQL> select count(*) from user_procedures;
the Original
COUNT(*)
134
the current:
select count(*) from user_procedures;
COUNT(*)
18
I also tried these alternatives:
exp tablespaces="user1_data" FILE="user1.dmp" log=user1.log
exp LOG=user1.log TABLESPACES=user1_data FILE=user1_data.dmp
exp LOG=user1owner.log owner=user1 FILE=user1owner.dmp
expdp DIRECTORY=dpump_dir1 dumpfile=servdata_pump version=compatible SCHEMAS=user1
impdp directory=data_pump_dir dumpfile=servdata_pump.dmp :
ORA-39213: Metadata processing is not available
SQL> execute dbms_metadata_util.load_stylesheets
BEGIN dbms_metadata_util.load_stylesheets; END;
ERROR at line 1:
ORA-31609: error loading file "kualter.xsl" from file system directory
"/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/rdbms/xml/xsl"
ORA-06512: at "SYS.DBMS_METADATA_UTIL", line 1793
ORA-06512: at line 1
file kualter.xsl does not exist in XE !!
imp owner=user1 rows=n ignore=y
imp full=y file=user1_data.dmp
imp full=y file=full.dmp tablespaces=user1_data,user1_index rows=n ignore=y
So, I do not understand why user1 objects are not imported:
see this part of the first import log:
Export file created by EXPORT:V10.02.01 via conventional path
import done in US7ASCII character set and AL16UTF16 NCHAR character set
import server uses WE8ISO8859P1 character set (possible charset conversion)
. importing SYS's objects into SYS
. importing USER1's objects into USER1
. . importing table .........................
why only 18 rows?
if you have an suggestion, you are welcome, as I do not have any other idea...
ren
Edited by: ronpetitpatapon on May 26, 2010 12:38 PM
Edited by: ronpetitpatapon on May 26, 2010 12:41 PM
Edited by: ronpetitpatapon on May 26, 2010 1:03 PM -
How to export a user and their schema from one 10g database to another?
Hi,
I would like to export a user and their entire schema from one 10g database to another one. How do I do this?
thx
adamIf you want to export a user and the schema owned to the user, and import to the same user in a different database, or a different user in the same database, you can use the exp and imp commands as described in the Utilities manual.
These commands are very versatile and have a lot of options - well worth learning properly. To give you a simplistic shortcut, see below - I create a user 'test_move', create some objects in the schema, export, create a new user in the database 'new_move' and import.
oracle@fuzzy:~> sqlplus system/?????
SQL*Plus: Release 10.2.0.1.0 - Production on Sat Mar 11 21:46:54 2006
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
SQL> create user test_move identified by test_move;
User created.
SQL> grant create session, resource to test_move;
Grant succeeded.
SQL> connect test_move/test_move
Connected.
SQL> create table test (x number);
Table created.
SQL> insert into test values (1);
1 row created.
SQL> exit
Disconnected from Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
oracle@fuzzy:~> exp system/????? file=exp.dmp owner=test_move
Export: Release 10.2.0.1.0 - Production on Sat Mar 11 21:48:34 2006
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to: Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
Export done in AL32UTF8 character set and AL16UTF16 NCHAR character set
About to export specified users ...
. exporting pre-schema procedural objects and actions
. exporting foreign function library names for user TEST_MOVE
. exporting PUBLIC type synonyms
. exporting private type synonyms
. exporting object type definitions for user TEST_MOVE
About to export TEST_MOVE's objects ...
. exporting database links
. exporting sequence numbers
. exporting cluster definitions
. about to export TEST_MOVE's tables via Conventional Path ...
. . exporting table TEST 1 rows exported
. exporting synonyms
. exporting views
. exporting stored procedures
. exporting operators
. exporting referential integrity constraints
. exporting triggers
. exporting indextypes
. exporting bitmap, functional and extensible indexes
. exporting posttables actions
. exporting materialized views
. exporting snapshot logs
. exporting job queues
. exporting refresh groups and children
. exporting dimensions
. exporting post-schema procedural objects and actions
. exporting statistics
Export terminated successfully without warnings.
oracle@fuzzy:~> sqlplus system/?????
SQL*Plus: Release 10.2.0.1.0 - Production on Sat Mar 11 21:49:23 2006
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
SQL> create user new_move identified by new_move;
User created.
SQL> grant create session, resource to new_move;
Grant succeeded.
SQL> exit
Disconnected from Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
oracle@fuzzy:~> imp system/????? file=exp.dmp fromuser=test_move touser=new_move
Import: Release 10.2.0.1.0 - Production on Sat Mar 11 21:50:12 2006
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to: Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
Export file created by EXPORT:V10.02.01 via conventional path
import done in AL32UTF8 character set and AL16UTF16 NCHAR character set
. importing TEST_MOVE's objects into NEW_MOVE
. . importing table "TEST" 1 rows imported
Import terminated successfully without warnings.
oracle@fuzzy:~> If moving between databases, remember to set the SID properly before the import. If keeping the same userid, skip the from/to stuff in the import.
There are many variations on the theme ...
You can simplify this. You can select tables individually. You can use a parameter file. You can transport all the constraints and data. You can skip the data and only move the definitions. You can get some help (imp/exp help=yes).
And, if it's all 10g, there is a new and improved facility called expdp/impdp (dp = data pump) which has a lot more capability as well, including direct transfer (no intermediate file) together with suspend/restart. Also documented in the Utilities manual. -
How can I list all users and their DEFAULT tablespace?
How can I list all users and their DEFAULT tablespace?
PeterPeter, the following short article that lists the most heavily used Oracle rdbms dictionay views might be of interest based on your question:
How do I find information about a database object: table, index, constraint, view, etc… in Oracle ? http://www.jlcomp.demon.co.uk/faq/object_info.html
HTH -- Mark D Powell -- -
SQL to retrieve business areas, users and their reports?
Hi,
I've been able to retrieve by sql, users and their reports or business areas and thier users, but I'm unable to retrieve business areas, users and reports in the same sql.
I've been looking in eul tables without success. I guess someone has already done that?
ThanksHello
The problem you have is that you are trying to mix objects that don't go together.
As you have already determined, you can have a script to query users who have access to business areas, and you can also have a script to query users who have access to or own reports. However there is no link between business areas and reports.
Discoverer reports are validated against folders, not business areas. If a report uses 2 folders and there are 10 business areas that contain those folders which business area do you think the report was written against? The answer is none of them. You just happened to have a business area open at the time the report was written but truthfully you could have used any of them. Therefore, if a user reopens a workbook that uses folders found in multiple business areas, Discoverer will default to the first business area by name that contains all of the folders used and that the user has been granted access to.
Hope this helps
Best wishes
Michael -
How to find out list of users and their access on Sharepoint
Hello Everyone
How can i find out list of users and what access they have on SharePoint site? I want to create table with list of the users and their access?
Thanksyou can get the report using below powershell scripts. first one gives list of users in a site collection level.
The second link generates the permissions reports for each user.
http://techtrainingnotes.blogspot.com/2010/12/sharepoint-powershell-script-to-list.html
https://sp2010userperm.codeplex.com/
My Blog- http://www.sharepoint-journey.com|
If a post answers your question, please click Mark As Answer on that post and Vote as Helpful -
List of users and their licence allocation
I am aware of accessing Admin>> License>> License allocation, one by on - but would like to have access to be able to llist users and their licence allocation.
hello Liza,
you may see this thread. this may help you
License Allocation
hope it helps..
Fidel -
List of users and their decimal notation settings in SAP system
Hi all, i'm looking to get my hands on a list of all users in our SAP system and their respective decimal notation settings? I know that these can be mass changed using SU10 however I am unable to determine how to view a list of users and their settings.
Thanks,
JamesHi James,
You can find many useful reports, in SUIM transaction to see user details, but not decimal notation field. I don't know a report to show decimal notations, but as a workaround, in order to see the decimal notation, you can check "USR01-DCPFM" by using "SE16".
Best regards,
Orkun Gedik -
I'm trying to burn a dvd from idvd but I keep getting error message, broken assets, but when I check my drop zones and their content there's no error messages on any of them?
Hi
And if You change view - in main "window/view field" so that You see the box-plot structure.
No exclamation marks there either ?
and non at the front page ?
iDVD do not copy Your material - only points to where it is stored. So if on any external hard disks, USB-memories, CDs or DVDs are missing - assetts are broken.
Or if You changed location of any material or directed iPhoto or iTunes or GarageBand to a new Library - Then iMovie/iDVD also get's lost.
Yours Bengt W -
Getting list of all users and their group memberships from Active Directory
Hi,
I want to retrieve a list of all the users and their group memberships through JNDI from Active Directory. I am using the following code to achieve this:
==================
import javax.naming.*;
import java.util.Hashtable;
import javax.naming.directory.*;
public class GetUsersGroups{
public static void main(String[] args){
String[] attributeNames = {"memberOf"};
//create an initial directory context
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory");
env.put(Context.PROVIDER_URL, "ldap://172.19.1.32:389/");
env.put(Context.SECURITY_AUTHENTICATION, "simple");
env.put(Context.SECURITY_PRINCIPAL, "[email protected]");
env.put(Context.SECURITY_CREDENTIALS, "p8admin");
try {
// Create the initial directory context
DirContext ctx = new InitialDirContext(env);
//get all the users list and their group memberships
NamingEnumeration contentsEnum = ctx.list("CN=Users,DC=filenetp8,DC=com");
while (contentsEnum.hasMore()){
NameClassPair ncp = (NameClassPair) contentsEnum.next();
String userName = ncp.getName();
System.out.println("User: "+userName);
try{
System.out.println("am here....1");
Attributes attrs = ctx.getAttributes(userName, attributeNames); // only asked for one attribute so only one should be returned
System.out.println("am here....2");
Attribute groupsAttribute = attrs.get(attributeNames[0]); // memberOf
System.out.println("-----"+groupsAttribute.size());
if (groupsAttribute != null){
// memberOf is a multi valued attribute
for (int i=0; i<groupsAttribute.size(); i++){
// print out each group that user belongs to
System.out.println("MemberOf: "+groupsAttribute.get(i));
}catch(NamingException ne){
// ignore for now
System.err.println("Problem encountered....0000:" + ne);
//get all the groups list
} catch (NamingException e) {
System.err.println("Problem encountered 1111:" + e);
=================
The following exception gets thrown at every user entry:
User: CN=Administrator
am here....1
Problem encountered....0000:javax.naming.NamingException: [LDAP: error code 1 -
000020D6: SvcErr: DSID-03100690, problem 5012 (DIR_ERROR), data 0
]; remaining name 'CN=Administrator'
I think it gets thrown at this line in the code:
Attributes attrs = ctx.getAttributes(userName, attributeNames);
Any idea how to overcome this and where am I wrong?
Thanks in advance,
Regards.In this sentence:
Attributes attrs = ctx.getAttributes(userName, attributeNames); // only asked for one attribute so only one should
It seems Ok when I add "CN=Users,DC=filenetp8,DC=com" after userName, just as
userName + ",CN=Users,DC=filenetp8,DC=com"
But I still have some problem with it.
Hope it will be useful for you. -
E-Recruiting Users and their Service Assignments
Hello all,
I am running EREC 604 SP11 (Ehp4), with ECC 6.0 SPS5, TREX 7.1rev39, Portal 7.01.
My scenario is EREC+ECC one box, Portal seperate and TREX seperate. I've got everything set up for WebDynpro (as required with this release) and am having some trouble accessing certain web dynpro links, I think my problem is an early eRecruiting step of defining service users and their assignments to eRecruiting / web dynpro services in SICF.
Can anyone provide me with a list/table of service/reference users that need to be created, their attached roles, and which services they each need to be assigned to? I've looked all over and cannot glean this type of simple documentation.
Thank you very much for your time!Hello,
The reference users and the respective roles would be;
Reference User / Standard SAP E-Rec Role / Role name
RCF_ADMIN / SAP_RCF_BUSINESS_ADMINISTRATOR / Administrator
RCF_CAND_EXT / SAP_RCF_EXTERNAL_CANDIDATE / External Candidate
RCF_CAND_INT / SAP_RCF_INTERNAL_CANDIDATE / Internal Candidate
RCF_DATA_TYP / SAP_RCF_DATA_TYPIST / Data Entry Clerk
RCF_DECISION / SAP_RCF_DECISION_MAKER / Decision Maker
RCF_MANAGER / SAP_RCF_MANAGER / Manager
RCF_MGRASS / SAP_RCF_MANAGER_ASSISTANT / Manager's Assistant
RCF_RECRUIT / SAP_RCF_RECRUITER / Recruiter
RCF_REQUEST / SAP_RCF_REQUISITION_REQUESTER / Requester
RCF_RES_REC / SAP_RCF_RESTRICTED_RECRUITER / Restricted Recruiter
RCF_RES_SUCC / SAP_RCF_REST_SUCCESSIONPLANNER / Restricted Succession Planner
RCF_SUCC_PL / SAP_RCF_SUCCESSION_PLANNER / Succession Planner
RCF_TC / SAP_RCF_TALENT_CONSULTANT / Talent Consultant
The service user with the role and relevant services would be
Service user / Std. E-rec Role / Role name
RCF_UREG_CAND(*) / SAP_RCF_UNREGISTERED_CANDIDATE / UnRegistered Candidate
(*) - The naming convention as required
Required services;
hrrcf_a_unreg_job_search
hrrcf_a_candidate_registration
HRRCF_A_POSTING_APPLY
Service user is key for Un-registered candidates till the registration process is complete. I'm not sure if i had missed out any specific services with respect to Unregistered candidates. If so, probably some one else can add to the list.
Best Regards
G Raj -
BI Report - List all users and their assigned roles
Hello,
i need a report, which lists me all users and their roles.
Which table stores this membership information about the users?
USR or UGP does not have any valuesHi Reynaldo,
You can go to SE16 -> table name "AGR_USERS" and see the records for all users. Arrange them in ascending order by name and you will get the report what you have mention above.
Download it and put it in EXCEL.
Best Wishes.
Kumar -
Script to list the users and their privileges in a database
Hi Team,
Can someone provide me a script that list all the users and their privileges in a database?
DB version:11.2.0.2
OS:AIXOsama_mustafa wrote:
Why you create your own script
SELECT * FROM USER_SYS_PRIVS;
SELECT * FROM USER_TAB_PRIVS;
SELECT * FROM USER_ROLE_PRIVS;
That won't tell him what privileges a user has via a role. It will only tell him what privilges were granted directly, and what roles were granted directly. But those roles have privileges, and may have other roles, which have still more roles and privs, etc. It's a recursive issue and a simple select from user__privs won't get it.
Pete Finnigan has a good script for reporting the entire picture. I leave it as an exercise for the student to use google to find it. I have already given all the information needed to complete that exercise. -
List all users and their own roles.
Hi everybody!
I have to make a list of all sap users and their own separated roles by user. There are any transaction to do it? The SUIM transaction gives me a sap user and their own roles, but if I try with a lot users It gives me all the roles that are using those users but don't give me the roles for each one.
Thanks a lot.
Best regards.Hi Reynaldo,
You can go to SE16 -> table name "AGR_USERS" and see the records for all users. Arrange them in ascending order by name and you will get the report what you have mention above.
Download it and put it in EXCEL.
Best Wishes.
Kumar -
Protecting users and their emails after FA-P2T on Cloud and on-premise environments
Hello everyone,
I would like to share this helpful article to let you know how to protect user's emails after a FA-P2T(production to test) procedure on-premise environments, and make it possible for Cloud(thru SRs, if approved, of course).
thiagoleoncio: Protecting users and their emails after FA-P2T on Cloud environments
I hope it helps,
Thiago Leoncio.I had exactly same issue. And it was hard for me to troubleshoot too. Here is what I did,
Forced "Outlook Anywhere" even when users were in internal LAN. The issue did not appear. This gave me the idea that since Outlook Anywhere is encrypted (HTTPS) connection there was no interference with
traffic between Outlook and Exchange. This tells me that some other network devices were interfering with this traffic.
In my case, it was WAN Acceleration (Riverbed). Riverbed did acknowledged this issue and pointed us to their KB article. Good luck convincing your network guys though. If HTTPS work, keep using it. It
will eventually irritate the network guys as they cannot compress encrypted traffic ( if you don't provide them the certificate).
I know this is shot in the dark as I don't know your network.
Exchange server reboot could be completely different issue. I have no idea why.
I hope this helps.
Maybe you are looking for
-
How to get title templates library for CC?
How to get title templates library for CC? Do you have to download and install PP 6 to get them?
-
Is it possible to replace an iPad screen? can apple fix it?
I cracked my screen and want to fix it
-
Very Urgent Pls help : Change of payload type to user-defined types
Hello Experts I was using sys.xml_type as payload type in my queue table creation. consider xml message <order> <id>1</id> <load rerer="mq" erere='gg" > </load> </order> This i inserted into queue table using enqueue process. this is done. BUT NOW My
-
Mathematical functions - Frac, trunc, ceil
Hi, I'm trying to use Mathematical functions like ceil, trunc... in a class method but they don't work. How can I solve the problem? data: appo_dec type p decimals 2, wa_val type p decimals 2 value '1.75'. appo_dec = FRAC( wa_val ). The vari
-
Make songs appear under a different artist
I'm real anal about the way my songs are named. For example, I would like the songs by Genesis to show up under under Phil Collins. I want the correct artist to appear when the song is played (i.e., "Genesis") but I want the song to appear under "Phi