$ sqlplus sys/sys-password as sysdbaNow startup the oracle instance.
SQL> startupAs SYS DBA Create a database user,and grant privileges to the user as below:
Create user USER_NAME identified by PASSWORD account unlock; grant connect to USER_NAME; grant create session, dba to USER_NAME; commit;Now exit from SQL*Plus session and start oralcle listner
$ lsnrctl start
<dbConfig name="wso2registry"> <url>jdbc:oracle:thin:@SERVER_NAME:PORT/DB_NAME</url> <userName>USER_NAME</userName> <password>PASSWORD</password> <driverName>oracle.jdbc.driver.OracleDriver</driverName> </dbConfig>Edit $CARBON_HOME/conf/user-mgt.xml and give the following:
<Database> <URL>jdbc:oracle:thin:@SERVER_NAME:PORT/DB_NAME</URL> <UserName>USER_NAME</UserName> <Password>PASSWORD</Password> <Dialect>oracle</Dialect> <Driver>oracle.jdbc.driver.OracleDriver</Driver> </Database>
Default port for oracle is 1521
Copy the oracle jdbc libraries to $CARBON_HOME/repository/components/lib. (Ex:- $ORACLE_HOME/jdbc/lib/ojdbc14.jar)
Database tables can be created either manually by running scripts or automatically by using startup parameters.
Database tables can be created manually by logging in to created database and running the following scripts
CARBON_HOME/dbscripts/oracle.sql
Windows users can run $CARBON_HOME/bin/wso2server.bat -Dsetup to create the database tables when starting WSO2 Governance Registry for the first time. Linux users should use $CARBON_HOME/bin/wso2server.sh -Dsetup