How to delete all users (objects) in 9i database?
Hi friends:
I did a full database exp/imp for a dev database, before imp, I need to delete all objects in the old dev database, I know delete one user is
drop user user_name cascade;
how about all users (objects)???? in 9i database
thank you very much
Hi,
I will use
select ' drop user ' ||username|| ' cascade;' from all_users where username not
in ('SYS','SYSTEM', ‘DBSNMP’);
Is there any other users I don't need to drop off besides the above three ones?
thank you very much
Similar Messages
-
HOW TO DELETE ALL INFO OBJECTS IN A SYSTEM
HI! gurus,
I want to know how to delete all user created info objects in my laptop.the situation is while practicing SAP in my laptop ...creation of user info objects occured heavily resulting in degrading the system performance.so is there any procedure to delete all info objects(user created)making a system a newly SAP installed one....please help me....
Regards
Ravikanth PinipoluHi Ravi,
u can try it manually to delete the User defined objects..
or u can use the prg: RSDG_IOBJ_DELETE and in that u can give some selection of objects for the deletion..
Give it a try..
Thanks
Hope this helps -
How to delete all users quickly in EOP
I need to delete all user inside my standalone EOP. I need to remove the domains but it won't let me since there are users in the domain. It will only allow 20 at a time to be deleted. I am sure there is a PowerShell way but I need this done ASAP.
Thanks,
Mike
MRRAs it ended up, I didn't need to because Microsoft resolved the issue after telling me at first they couldn't. :-) I am a little amazed no one responded to this. Maybe it is one of those so simple things they think we are morons for asking. :-)
MRR -
How to delete all objects for one user from SE80
Hi all,
If i want to delete the customer objects defined in the customer space Y or Z from SE80. Object of one user is defined in one package, if i want to delete the pakcage it says, it contain the subobject. So can anybody help me how to delete the customer objects from SE80.
Your response will be highly rewared.
Tahnks,
Salahuddin.hi
good
i think here you want to delege the development class, if you want to delete the particular development class you have to go for se09 where after selecting the particular development class you can select the delete button.
thanks
mrutyun -
How to activate all inactive objects for current user
Hi
How to activate all inactive objects for current user ...
... I have found a (long winded) way to do this:
- Environment / Inactive Objects
- Add to Worklist
- Display Worklist
- Select All
- Activate
this will open a dialog titled "Inactive Objects for <username>"
which has the exact functionality I need ... but I can't figure out how to get to this dialog directly - without so many intermediate steps
the SAP docs repeatedly mention the ability to activate the inactive worklist - but do not mention how
does anybody know the TCode for this dialog?
thanks
ps does the term "mass activation" apply to importing change requests rather than development activation?
Edited by: FireBean500 on Jun 4, 2010 11:07 PMNo other way. But usually it's far more simple as all objects are already in our own worklist.
I wonder why your objects are not already in your worklist, as everytime you create or maintain an object, it is added to your worklist. -
How to delete all objects in a package?
Hello,
I've seen a similar question here. But is there a tool or a smart way to delete all objects in a dev class or a transport request?
Best Regards
VolkerThese are really 3 questions??
1. To delete objects in a request there are a number of ways, here is one:
Position cursor on modifiable request.
Double click on request and choose 'Objects' tab
Choose object line you want to delete and click 'Delete'
Save your changes.
2. To delete objects in a Dev Class:
Go to work bench --> edit object, Class and give your class name, you will see delete option at the bottom of the screen.
3. How to delete all objects in a package:
here is a link with the steps you need for this: http://benxbrain.com/en/index.do?onInputProcessing(brai_object_thread)&001_threadid=0000161442&sysid=WP5&pgmid=R3TR&object=DOMA&obj_name=DEVCLASS&child_param= -
How to reset All users and delete their table?
Hi,
i want to know How to reset All users and delete their tables with username- system and password-manager.
thanksHi
Here delete means truncate or drop?????
If drop use the following statement to generate the script:
select 'drop table ' || Owner || '.' || Table_Name || ';' from Dba_tables
where owner in (<All_the_users_you_want_to_reset>);
But before firing the above statement extract the DDL's to create all the users and put it in a file and just run that file to re-create the users.
if its truncate then:
select 'truncate table ' || Owner || '.' || Table_Name || ';' from Dba_tables
where owner in (<All_the_users_you_want_to_reset>);
Hope this Helps
Regards -
Using Powershell to delete all users from the Portal
Summary
This script will delete all users from the Portal except for Administrator and the Built-In Sync account.
Based on Markus's "Delete a User" script.
Useful when developing your system if you want to quickly clear out the data and start again.
set-variable -name URI -value "http://localhost:5725/resourcemanagementservice' " -option constant
function DeleteObject
PARAM($objectType, $objectId)
END
$importObject = New-Object Microsoft.ResourceManagement.Automation.ObjectModel.ImportObject
$importObject.ObjectType = $objectType
$importObject.TargetObjectIdentifier = $objectId
$importObject.SourceObjectIdentifier = $objectId
$importObject.State = 2
$importObject | Import-FIMConfig -uri $URI
if(@(get-pssnapin | where-object {$_.Name -eq "FIMAutomation"} ).count -eq 0) {add-pssnapin FIMAutomation}
$allobjects = export-fimconfig -uri $URI `
–onlyBaseResources `
-customconfig "/Person"
$allobjects | Foreach-Object {
$displayName = $_.ResourceManagementObject.ResourceManagementAttributes | `
Where-Object {$_.AttributeName -eq "DisplayName"}
if([string]::Compare($displayName.Value, "Administrator", $True) -eq 0)
{write-host "Administrator NOT deleted"}
elseif([string]::Compare($displayName.Value, "Built-in Synchronization Account", $True) -eq 0)
{write-host "Built-in Synchronization Account NOT deleted"}
else {
$objectId = (($_.ResourceManagementObject.ObjectIdentifier).split(":"))[2]
DeleteObject -objectType "Person" `
-objectId $objectId
write-host "`nObject deleted`n" $displayName.Value }
Go to the FIM ScriptBox
http://www.wapshere.com/missmiisThe DeleteObject function opens and closes a connection for each object. This approach is faster:
http://social.technet.microsoft.com/wiki/contents/articles/23570.how-to-use-powershell-to-delete-fim-users-that-have-a-null-attribute-name.aspx
Mike Crowley | MVP
My Blog --
Planet Technologies -
How to delete a user in SAP-CPS Version 7.0
Hello,
I created my users via UME ( User Management Engine of Java Application server). Unfortunately I used the wrong name convention, so I had to recreate all the users in UME. Afterwards I delete all wrong users in UME.
Than I tried to login with my new user in SAP-CPS (users are normally created in SAP-CPS during first login) but I get the error message that I reached the maximum number of 10 users allowed in the basic version. No problem I thougt, I simply delete the wrong ones in SAP-CPS. But I do not know how to delete a user! I could not find any menu item or any describtion in the manualls how to delete an user in SAP-CPS.
I remove the users from any Isolation group, I disabled all the users but still I could not find any way to delete them.
Has any body a hint for mor.
Kind regards
Frank MorleoHello Anton,
deactivating the unused users made it possible to login with the new ones.
Thanks for your help.
Now I have to find out how to clear the deactivated users from the list.
Regards
Frank -
How to get all users under an organizations?
Hello everyone.
Just want to know if anyone knows how to get all users under a particular organization.
From the Search User form, I found they may kind of user such attribute conditions:
MemberObjectGroup
is in
XXXX(organization)
But unfortunately, the "is in" is not a valid AttributeConditionOperator, so besides using "recursive" self-written function, anyone knows any possible buit-in trick?Here is my solution:
<Rule'>
<RuleArgument name='organization'/>
<RuleArgument name='context'/>
<block>
<defvar name='orgs'>
<new class='java.util.ArrayList'/>
</defvar>
<invoke name='getChildObjectGroupNames'>
<invoke name='getObject' class='com.waveset.ui.FormUtil'>
<ref>context</ref>
<s>ObjectGroup</s>
<ref>organization</ref>
</invoke>
<ref>orgs</ref>
</invoke>
<append name='orgs'>
<ref>organization</ref>
</append>
<invoke name='getUsers' class='com.waveset.ui.FormUtil'>
<ref>context</ref>
<map>
<s>conditions</s>
<list>
<new class='com.waveset.object.AttributeCondition'>
<s>MemberObjectGroups</s>
<s>in</s>
<ref>orgs</ref>
</new>
</list>
</map>
</invoke>
</block>
<MemberObjectGroups>
<ObjectRef type='ObjectGroup' id='#ID#Top' name='Top'/>
</MemberObjectGroups>
</Rule> -
How to delete ALL accounts in preparation to sell computer?
I'm selling a Mac (five of 'em actually), and after doing a fresh OS (Tiger v10.4.3) install, followed by all system and app updates, I now want to delete all user accounts and traces thereof -- after I have cash in hand, of course. This so the Apple Setup Assistant starts on boot, and the buyer gets a fresh machine, including the lovely "Welcome to Apple" video/music extravaganza.
I know I've read instructions for doing this somewhere, but can now find no trace of them. Any help would be appreciated.
iMac iSight 20" Mac OS X (10.4.3)From a note at MacOSXHints on how to "Make OS X re-run the initial setup assistant":
1.Boot into single-user mode (command-S during startup)
2. Once the command-line prompt appears, type the following:
mount -uw /
cd /private/var/db/netinfo
mv local.nidb local.old
rm ../.AppleSetupDone
exit
When you hit RETURN after typing exit, OS X will restart and the setup assistant will launch automatically. So if you've somehow messed up your primary OS X user, this is a good fix that may get you up and running again, even if re-running the OS X installer does not.
Using that as a basis, then in your case, since you've installed the OS, you should only have one user, boot each machine with a bootable external FWHD (or mount each to a good machine in TDM), launch the Terminal app, and then do these commands:
sudo cd /Volumes/<machine's name>/private/var/db/netinfo/
sudo mv local.nidb local.nidb.old
sudo cd /Volumes/<machine's name>/
sudo rm -R /Users/<username>
sudo rm ../.AppleSetupDone
G4 450 MP Gigabit Mac OS X (10.4.3) -
Newbie: How can find all unused objects in XI ?
How can I find all unused objects in XI Integration Repository?
Thanks,
BadariHi,
Have a look at these thread, it might be helpful to you
XI Server Object Cleanup
How to delete Integration Repository Objects?
Thanks,
Pooja
ps: please mark helpful answers -
Delete all the objects in a package
Hi Guys,
My requirement is that i need to write a program to delete all the objects in a package. In the selection screen i enter the package name and then i get all the objects in the package from TADIR table and display them in an ALV.
There when i select a object and press the delete button ,the object (program ,table, domain,data element etc..) should be deleted .
For this i tried to DEBUG in SE80 and tried to know how SAP is trying to delete the object. But i couldnot unterstand which Function Module or which Class and Method it uses to delete an object.
Guys please let me know how it can be done.
Regards,
Chaithanya.hi
check this ...
REPORT zxxxxxx.
TYPE-POOLS: slis.
DATA: x_fieldcat TYPE lvc_s_fcat,
it_fieldcat TYPE lvc_t_fcat,
g_grid TYPE REF TO cl_gui_alv_grid,
x_layout TYPE lvc_s_layo,
g_custom_container type ref to cl_gui_custom_container,
g_container type scrfname value 'I_CONTAINER'.
types: BEGIN OF ty_itab ,
check(1) TYPE c,
PGMID LIKE TADIR-PGMID,
END OF ty_itab,
data:itab type standard table of ty_itab,
itab1 type TADIR.
call screen 100.
*& Module STATUS_0100 OUTPUT
text
module STATUS_0100 output.
SET PF-STATUS 'ZSTATUS100'.
if g_custom_container is initial.
create object g_custom_container
exporting container_name = g_container.
create object g_grid
exporting i_parent = g_custom_container.
SELECT PGMID
FROM TADIR
INTO CORRESPONDING FIELDS OF TABLE itab where DEVCLASS = selection screen package
x_fieldcat-fieldname = 'CHECK'.
x_fieldcat-seltext = 'CHECK'.
x_fieldcat-checkbox = 'X'.
x_fieldcat-edit = 'X'.
x_fieldcat-tabname = 'ITAB'.
x_fieldcat-col_pos = 1.
APPEND x_fieldcat TO it_fieldcat.
CLEAR x_fieldcat.
x_fieldcat-fieldname = 'PGMIDt'.
x_fieldcat-seltext = 'PGMIDt'.
*x_fieldcat-edit = 'X'.
x_fieldcat-tabname = 'ITAB'.
x_fieldcat-col_pos = 2.
APPEND x_fieldcat TO it_fieldcat.
CLEAR x_fieldcat.
CALL METHOD g_grid->set_table_for_first_display
EXPORTING
IS_LAYOUT = x_layout
CHANGING
it_outtab = itab
IT_FIELDCATALOG = it_fieldcat.
endif.
endmodule. " STATUS_0100 OUTPUT
*& Module USER_COMMAND_0100 INPUT
text
module USER_COMMAND_0100 input.
DATA: ls_outtab LIKE LINE OF itab.
DATA: l_valid TYPE c,
ok_code like sy-ucomm,
r_ucomm LIKE sy-ucomm,
ls_celltab TYPE lvc_s_styl,
lt_celltab TYPE lvc_t_styl,
l_index TYPE i.
CALL METHOD g_grid->check_changed_data
IMPORTING
e_valid = l_valid.
IF l_valid EQ 'X'.
case sy-ucomm.
when 'DELETE'.
LOOP AT itab INTO ls_outtab where check = 'X'.
move ls_outtab-object to itab1.
delete TADIR from itab1.
ENDLOOP.
endcase. -
How to delete last user session from backend SQL query?
Sometimes user session gets closed between some work by any reason.
When next time that user logs to P6, he gets some error or particular functionaly dosen't work for that user or system hangs.
In that case if i decided to clear last session history of that user from database, how to write SQL query?
I don't want to delete all user sessions from table USESSION and USESSAUD, i simply want to delete last user session of particular user (E.g XYZ).I am quoting this from MOS Doc Id "Why would multiple session records be present in the User Sessions screen in P6 Web, and why might some of them have different IP addresses? (Doc ID 1600172.1)"
Multiple sessions show up for users since different sections of P6 Web have their own sessions associated with them. If a user is authorized to use multiple areas of the software they will have multiple sessions each time they log in. Additionally, if users are closing their browsers before logging out of P6 Web Access you might see some past sessions still appearing in the list. These will eventually be cleared out by background jobs, however you can also reset the sessions in the software by clicking the "Reset User" link (Administer > User Sessions > Manage User Sessions), or by choosing the "Reset All Users" link (Administer > User Sessions > Manage User Sessions) to do this for all past sessions.
Multiple IP addresses for sessions can happen when a user logs in from different machines. For example, a person may login at their desk, but then go to a colleagues workstation to discuss a project, and log in from there. Doing so will leave them with multiple IP addresses in the session records.
Hope this helps
Regards,
Sachin Gupta -
Can i delete all users in one go?
I am using SAP authentication. Afer defining my Entitlement system, under options i did not chose to Import users for the imported role.
But All users for the imported rloe are imported. i dont want all users. It is painful as well to delete each user at a time for 500 users. How can i delete all users in a sinlge go?
Please help
--KrishThis may ork: Try to set the Force user synchronization option under CMC->Authentication->SAP->Options and remove the role temporarily.
Such a behaviour can be xeplained only through the setting of the option Automatically import users under CMC->Authentication->SAP->Options . Even for a short period of time.
You MUST create a role that contains only the SAP users you want to accept in your BOBJ system and import this role in the CMC
Regards,
Stratos
Maybe you are looking for
-
Error while creating Credit Memo Request for Milestone billing invoice
Hi All, I have a scenario where i have Milestone billing(% based) at header level in Contracts. I create Invoice for that and then try to create Credit Memo Request with reference to the Invoice. Problem comes when we try to change the qty in the cre
-
Error sender comm.channel
R/3 sends the idoc to the file folder in UNIX, created file adapter to pick the file was given the file path correctly but in communication channel throws out the following error. ( i have to do any configuration ) 3/15/07 2:33:46 PM Retry interval s
-
Hi, apologies if this has been asked before but is it possible to give the user a preview of the magazine you expect them to purchase on Apples Newsstand? Right now it appears to be limited to the front cover. It would be good to allow the user 'flic
-
Personal Information Manager Problem [SOLVED]
I have a little problem with this that I can not save personal info in it...It is seen on screenshot. Do maybe have someone solution for this? PS: I'm new to Arch. Last edited by kalcho (2011-02-04 18:39:14)
-
Hello, I have followed the tutorial to include a preloader in my webpages of my website. The spinning icon works on my desktop, but is not visible when the site is uploaded online. <!doctype html> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transiti