The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
lsnrctl start script for Oracle on Solaris prakash.gr Shell Programming and Scripting 4 06-14-2009 05:33 AM
Install Guide: Oracle Database 11 g Release 1 on Oracle Enterprise Linux 5 iBot Oracle Updates (RSS) 0 09-11-2008 02:15 AM
Install Guide: Oracle Database 11g Release 1 on Oracle Enterprise Linux 5 iBot Oracle Updates (RSS) 0 04-06-2008 05:10 AM
Drop Users trfrye UNIX for Dummies Questions & Answers 2 08-31-2005 03:39 PM
oracle database on solaris and linux ganga UNIX for Dummies Questions & Answers 3 11-27-2003 11:06 AM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-02-2009
Sonson Sonson is offline
Registered User
  
 

Join Date: Apr 2009
Posts: 2
Script to drop oracle DB users on HP, LINUX, SOLARIS

Hi everybody,

i need help from all of you.

I have many users who are no more work in our Company. Some who get objects are Locked. There Many users and many Database Servers. And it'll take long for me to finished this job.

That's why i need your help to provide me anyone Scripts for(HP,LINUX,SOLARIS) which drop all users who don't have any objects in all databases on all oracle Server.

Hier his my Sql script which i want to combine your help Script
Code:
 select   username, count (object_name)
    from   all_users, all_objects
   where   username = owner(+)
group by   username
  having   count (object_name) = 0;
Und another one to import all users all users who still get objects in one Table. And i suppose to do it before Friday 03th of July 09 Afternoon.
Thanks a lot in advance

Sincerly your

Sonson
  #2 (permalink)  
Old 07-02-2009
Neo's Avatar
Neo Neo is offline Forum Staff  
Administrator
  
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 6,661
Why not go to your Oracle admin interface and execute the SQL query from there?
  #3 (permalink)  
Old 07-04-2009
Sonson Sonson is offline
Registered User
  
 

Join Date: Apr 2009
Posts: 2
Please all of you

i'm here because i need help like a shell script to do this on all unix server. i have allready my sql sript like ishow you. May be now please somedoby can help me.

Thank in Advance

Sonson
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 08:51 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0