Sun Java logo     Previous      Contents      Index      Next     

Sun logo
Sun[TM] Identity Manager 8.0 Installation Guide 

Appendix D  
setRepo Reference


Usage

setRepo [location_flags] [options]

location_flags


Flag

Description

-d databaseName

dbName in URL. The default name is waveset. Ignored if the -u flag is specified.

-D propsPath

Path to Properties file (JDBC/JNDI Connection Properties)

-f filepath

Filesystem path for LocalFiles (JNDI RDN for DataSource)

-h hostName

Hostname URL. Ignored if the -u flag is specified.

-i initCtxFac

Name of the InitialContextFactory class for JNDI

-j jdbcDriver

JDBC Driver class. (The default is DBMS-specific.)

-o outfile

Output file path (write config file; do not update Server)

-p portNumber

Port number in URL. Ignored if the -u flag is specified.

-P password

Password for JDBC connection. The default value is waveset.

-t type

LocalFiles, MySQL, Oracle, DB2, or SQLServer

-u url

URL for JDBC connection (overrides the -d, -h, and -p flags)

-U username

User name for JDBC connection. The default value is waveset.


Options


Option

Description

-A administrator

Administrator username. The default username is configurator.

-C credentials

Administrator password (if changed from default)

-c

Current (print current location to stdout)

-v

Verbose (print configuration to stdout)

-n

No checks. Use with the –o flag when the new location is unreachable, or with -c when current location is unreachable from the command line environment.


Syntax


Note

If any parameters contain a shell escape or illegal characters, use double quotation marks around them to avoid failures. For example, the ';' '&', '&&', '|', and '||'characters cause these failures.


The following is an example containing arguments for a direct JDBC driver connection:

{-toracle { -u$url | -h$host [-p$port] [-d$dbname] } [-U$userid \
-P$pwd] [-D$propsPath]

| -tmysql [ -u$url | [-h$host] [-p$port] [-d$dbname] ] [-U$userid \
-P$pwd] [-D$propsPath]

| -tsqls { -u$url | -h$host [-p$port] [-d$dbname] } [-U$userid \
-P$pwd] [-D$propsPath]

| -tdb2 { -u$url | -h$host [-p$port] [-d$dbname] } [-U$userid \
-P$pwd] [-D$propsPath]

}

The following is an example containing arguments that specify a direct DataSource connection:

| -toracle -i$initCtxFac -f$path [-u$providerUrl] [-U$userid \
-P$pwd] [-D$propsPath]

| -tmysql -i$initCtxFac -f$path [-u$providerUrl] [-U$userid -P$pwd] \
[-D$propsPath]

| -tsqlserver -i$initCtxFac -f$path [-u$providerUrl] [-U$userid \
-P$pwd] [-D$propsPath]

| -tdb2 -i$initCtxFac -f$path [-u$providerUrl] [-U$userid -P$pwd] \
[-D$propsPath]
}


Examples

setRepo

setRepo -c

setRepo -tLocalFiles -f$WSHOME

setRepo -tOracle -hhost.your.com -p1521 -ddbname

setRepo -tOracle -ujava:oracle:thin:@host.your.com:1521:dbname

setRepo -tOracle -icom.sun.jndi.fscontext.RefFSContextFactory \
  -fjdbc/SampleDB

setRepo -tMysql

setRepo -tMysql -ujdbc:mysql://localhost/waveset

setRepo -tSQLServer -  ujdbc:microsoft:sqlserver://host.your.com:1433;Database\
  Name=dbname;SelectMethod=Cursor

setRepo -tDB2 -ujdbc:db2://host.your.com:6789/dbname

setRepo -tDB2 -ujdbc:db2:dbname -jCOM.ibm.db2.jdbc.app.DB2Driver



Previous      Contents      Index      Next     


Part No: 820-2956-10.   Copyright 2008 Sun Microsystems, Inc. All rights reserved.