Put your tips and tricks online - Share your knowledge! Login | Register
 
 
  Search     Advanced search
 

Home | Ask Question | Add tip | My tips | Recent tips & tricks | Suggest a category | FAQ | Forums

 
 
 
 Category : Home > Miscellaneous > Middleware > Oracle Fusion Middleware > Oracle SOA Suite     

How to create users using command line utility jazn.jar


If you don't bother with LDAP (i.e. Active Directory) and use file based security for your
Oracle Application Server / SOA environment you can use jazn.jar to manage users and roles,
which makes it a little easier as opposed to using enterprise manager console.

Below are some examples of using jazn command line tool to create a new role, grant role to a
role, create a new user and grant role to a user in Oracle Application Server / SOA suite.

First you need to go to directory where you have your jazn.jar, tipically home oc4j
container:

$ cd $ORACLE_HOME/j2ee/home

To display help run:

$ java -jar -Doracle.j2ee.home=$ORACLE_HOME/j2ee/home jazn.jar -user oc4jadmin -password
<password> -help

To create a new role in oc4j_soa container:

$ java -jar -Doracle.j2ee.home=$ORACLE_HOME/j2ee/oc4j_soa jazn.jar -user oc4jadmin -password
<password> -addrole jazn.com SOA_administrator

To grant role to another role:

$ java -jar -Doracle.j2ee.home=$ORACLE_HOME/j2ee/oc4j_soa jazn.jar -user oc4jadmin -password
<password> -grantrole ascontrol_admin jazn.com -role SOA_administrator

To create a new user (dummy/welcome1) in oc4j_soa container:

$ java -jar -Doracle.j2ee.home=$ORACLE_HOME/j2ee/oc4j_soa jazn.jar -user oc4jadmin -password
<password> -adduser jazn.com dummy welcome1

To grant a role to user (role SOA_administrator to user dummy) in oc4j_soa container:

$ java -jar -Doracle.j2ee.home=$ORACLE_HOME/j2ee/oc4j_soa jazn.jar -user oc4jadmin -password
<password> -grantrole SOA_administrator jazn.com dummy

Unfortunately you have to re-start the application server for the changes to take effect.


  Options
 
   del.icio.us  |  newsvine  |  digg  |  furl  |  google  |  yahoo  |  Ma.gnolia  |  vigillar  |  reddit  |  technorati  |  icerocket  |  pubsub

       Rate this tip:    

  Details
Tip reference : #203
views : 46
Added on : 08/07/08
Submited by : h8dk97
 
Send a message Send a message Printer friendly output Printer friendly output
Display this member's tips Display this member's tips (161)
 
 
Next >>
 Most viewed tips 
  Databases > Oracle > Security : How to unlock Oracle user account  
  Operating Systems > Unix : How to kill Unix user session  
  Databases > Oracle > Performance Tuning : How to enable trace in Oracle  
  Databases > Oracle : Kill user session  
   
  All categories
Databases | Programming | Hardware | Operating Systems | Networking | Internet | ERP / CRM | Games & Multimedia | Graphics & Design | Miscellaneous | Office Software | TipLib FAQ
 
 

Home |  FAQ |  Terms of Use |  Privacy Policy

© 2005 tiplib.com