Oracle Database WebLogic IDM JasperReports Howto
Oracle Database WebLogic IDM JasperReports Howto
Oracle Database WebLogic IDM JasperReports Howto
5)
Priprema:
***napomena dokument je u obliku quickstarta nije obraana prevelika panja na sigurnost (produkciju)
Oracle dokumentacija:
http://eelzinga.wordpress.com/2009/07/04/oracle-fusion-middleware-11g-ofm11g-on-centos-5/
http://blog.csdn.net/tle_sammy/article/details/6859314
http://www.talk2melbin.com/complete-installation-of-oracle-on-linux-machine-centos-5-3/
http://searchoracle.techtarget.com/feature/How-to-use-Oracle-Identity-Manager-for-user-provisioning
http://docs.oracle.com/cd/B14099_19/idmanage.1012/b14082/intro.htm
http://brettschroeder.blogspot.com/
http://ivan.kartik.sk/oracle/install_ora11gR1_suse.html
http://ivan.kartik.sk/oracle/install_ora11gR1_elinux.html
http://www.oracle-base.com/articles/linux/RHEL5Installation.php
http://docs.oracle.com/cd/E12839_01/oid.1111/e10029/getting_started.htm#CIHCIIAD
Instalacije
Nalaze se na:
smb://192.168.100.22/storage/Uposlenici/Aldin.Kapetanovic/oracle_downloads/install
baza - linux_11gR1_database_1013.zip
identity management - ofm_idm_linux_11.1.1.2.0_32_disk1_1of1.zip
weblogic server wls1032_linux32.bin
***napomena, kod instalacije ako se koriste druge verzije treba konsultovati oracle compatibility matrix
(neki excel fajl)
smb://192.168.100.22/storage/ISOs/01%20Operativni%20sistemi/CENTOS
Instalacioni medij CentOS-5.0-i386-bin-DVD.iso
Platforma
u toku instalacije kreirati usera oracle jer je u narednim skriptama koriten taj username
instalirati sljedee pakete: yum install gcc gcc-c++ sysstat libstdc++ compat-libstdc++ compat-db
limits.conf
su -c vim /etc/security/limits.conf
# /etc/security/limits.conf
#
#Each line describes a limit for a user in the form:
#
#<domain>
<type> <item> <value>
#
#Where:
#<domain> can be:
#
- an user name
#
- a group name, with @group syntax
#
- the wildcard *, for default entry
#
- the wildcard %, can be also used with %group syntax,
#
for maxlogin limit
#
#<type> can have the two values:
#
- "soft" for enforcing the soft limits
#
- "hard" for enforcing hard limits
#
#<item> can be one of the following:
#
- core - limits the core file size (KB)
#
- data - max data size (KB)
#
- fsize - maximum filesize (KB)
#
- memlock - max locked-in-memory address space (KB)
#
- nofile - max number of open files
#
- rss - max resident set size (KB)
#
- stack - max stack size (KB)
#
- cpu - max CPU time (MIN)
#
- nproc - max number of processes
#
- as - address space limit
#
- maxlogins - max number of logins for this user
#
- maxsyslogins - max number of logins on the system
#
- priority - the priority to run user process with
#
- locks - max number of file locks the user can hold
#
- sigpending - max number of pending signals
#
- msgqueue - max memory used by POSIX message queues (bytes)
#
- nice - max nice priority allowed to raise to
#
- rtprio - max realtime priority
#
#<domain>
<type> <item>
<value>
#
#*
#*
#@student
#@faculty
#@faculty
#ftp
#@student
soft
hard
hard
soft
hard
hard
-
core
rss
nproc
nproc
nproc
nproc
maxlogins
# End of file
oracle soft nofile 4096
oracle hard nofile 65536
0
10000
20
20
50
0
4
cd database; ./runInstaller
za weblogic server:
chmod +x wls1032_linux32.bin; ./wls1032_linux32.bin
za Oracle Identity Managment:
cd Disk1; ./runInstaller
***kod instalacije baze odabrati custom I u oppcijama izabrati utf8
Pristup servisima
Nakon instalacije, u browseru otvoriti
https://localhost:1158/em
Naknadna podeavanja
Podeavanje environment varijabli
vim /home/oracle/.bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
ORACLE_OWNER=oracle
export ORACLE_OWNER
ORACLE_HOME=/home/oracle/app/oracle/product/11.1.0/db_1
export ORACLE_HOME
ORACLE_SID=orcl
export ORACLE_SID
PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin
export PATH
#
# Set ORA_HOME to be equivalent to the $ORACLE_HOME
# from which you wish to execute dbstart and dbshut;
#
# Set ORA_OWNER to the user id of the owner of the
# Oracle database in ORA_HOME.
ORA_HOME=/home/oracle/app/oracle/product/11.1.0/db_1
ORA_OWNER=oracle Oracle Database WebLogic IDM JasperReports Howto
if [ ! -f $ORA_HOME/bin/dbstart ]
then
echo "Oracle startup: cannot start"
exit
fi
case "$1" in
'start')
# Start the Oracle databases:
# The following command assumes that the oracle login
# will not prompt the user for any values
su - $ORA_OWNER -c $ORA_HOME/bin/dbstart
su - $ORA_OWNER -c "$ORA_HOME/bin/emctl start dbconsole"
;;
'stop')
# Stop the Oracle databases:
# The following command assumes that the oracle login
# will not prompt the user for any values
su - $ORA_OWNER -c "$ORA_HOME/bin/emctl stop dbconsole"
su - $ORA_OWNER -c $ORA_HOME/bin/dbshut
;;
esac
JasperServer Reports
Priprema
smb://192.168.100.22/storage/Uposlenici/Aldin.Kapetanovic/jasper
jasperreports-server-cp-4.5.0-linux-x86-installer.run
ojdbc6.jar
Instalacija
run:
./jasperreports-server-cp-4.5.0-linux-x86-installer.run
(bundled Tomcat & PostgreSQL)
Restart jasperserver-a
./ctlscript.sh stop
./ctlscript.sh start
Config
Dodavanje DataSource-a - Oracle (thin driver)
driver: oracle.jdbc.OracleDriver
url: jdbc:oracle:thin:@192.168.100.125:1521:orcl
username: sys as sysdba
password: vaaifra
#!/bin/sh
# chkconfig: 345 99 10
chmod +x /etc/init.d/jasper
chkconfig --level 345 jasper on
Jasper dokumentacija
http://jasperforge.org/plugins/mwiki/index.php/Jasperserver/DataSources#Oracle_.28thin_driver.29
http://cicko.haker.ba:7005/odsm/faces/odsm.jspx
Directory Integration Platform
wls_ods1 : 7005
Oracle HTTP Server
Administrator Port : 9999
HTTPS Port : 4443
HTTP Port : 7777
Oracle Identity Federation
http://cicko.haker.ba:7777/fed/user/testspsso
wls_oif1 : 7499
Install summary
[ENGINE]
#DO NOT CHANGE THIS.
Response File Version=1.0.0.0.0
[GENERIC]
#Set this to true if installation and configuration need to be done, all other required variables need to be
provided. Variable "INSTALL AND CONFIGURE LATER TYPE" must be set to false if this is set to true as
the variables are mutually exclusive
INSTALL AND CONFIGURE TYPE=true
#Set this to true if only Software only installation need to be done. If this is set to true then variable
"INSTALL AND CONFIGURE TYPE" must be set to false, since the variables are mutually exclusive.
INSTALL AND CONFIGURE LATER TYPE=false
#Provide true to create a new weblogic domain. WebLogic Server must already be installed.
CREATE_NEW_DOMAIN=true
#Provide true to extend domain. WebLogic Server must already be installed and the domain must be up and
running.
USE_EXISTING_DOMAIN=false
#Provide true to configure components without domain.
NO_DOMAIN=false
#Provide true to expand the clusters in domain. WebLogic Server must already be installed and the domain
must be up and running.
EXTEND_CLUSTER=false
#Domain name may only contain alphanumeric characters or the underscore (_) or hyphen (-) characters.
DOMAIN_NAME=IDMDomain
#Provide the User Name for WebLogic Domain. The value may only contain alphanumeric characters, or the
underscore (_) or hyphen (-) characters.
DOMAIN_ADMINISTRATOR_USERNAME=weblogic
#Provide the password for WebLogic Domain. Valid passwords are 8 to 30 characters long, must begin with
an alphabetic character, use only alphanumeric, underscore (_), dollar ($) or pound (#) characters and
include at least one number.
DOMAIN_ADMINISTRATION_PASSWORD=<SECURE VALUE>
#Confirm the WebLogic Domain password.
ADMINISTRATOR_PASSWORD_CONFIRM=<SECURE VALUE>
#Provide the localhost name for Create Domain and machine name on which domain is up and running for
Extend Domain and Expand Cluster.
DOMAIN_HOST_NAME=cicko.haker.ba
#Provide the port in which domain is up and running. Required for Extend Domain and Expand Cluster.
DOMAIN_PORT_NO=
#Write the complete path to a valid Middleware Home.
AS_HOME_LOCATION=/home/oracle/Oracle/Middleware
#Give the complete path to a valid WebLogic Server Home.
WL_HOME=/home/oracle/Oracle/Middleware/wlserver_10.3
#Give the name of the Oracle Home directory. The Oracle Home directory name may only contain
alphanumeric , hyphen (-) , dot (.) and underscore (_) characters, and it must begin with an alphanumeric
character.
ORACLE_HOME=/home/oracle/Oracle/Middleware/Oracle_IDM1
#Give the complete path for an Oracle Instance directory to be created. This is the location where the
software configuration files and runtime processes will reside.
INSTANCE_HOME=/home/oracle/Oracle/Middleware/asinst_1
#Give a name for Oracle Instance corresponding to the Instance Home. The Oracle Instance name may only
contain alphanumeric and underscore (_) characters, it must begin with an alphabetic (a-z or A-Z) character,
#Provide the database user name. The user must have SYSDBA user privileges in order to create the
metadata repository.
CREATE_DATABASE_USERNAME=sys
#Provide the database password. The user must have SYSDBA user privileges in order to create the
metadata repository.
CREATE_DATABASE_PASSWORD=<SECURE VALUE>
#Provide true if OID scheme version is 10g.
OID_UPGRADE_FLAG=false
#Provide true to create OID Schema.
CREATE_OID_SCHEMA=false
#Provide the OID schema name.
OID_SCHEMA_NAME=
#Provide true if ODS schema chosen is already being used by an existing OID . Please ensure that the
system time on this Identity Management Node is in sync with the time on other Identity Management
Nodes that are part of this Oracle Application Server Cluster (Identity Management) configuration. Failure
to ensure this may result in unwanted instance failovers, inconsistent operational attributes in directory
entries and potential inconsistent behaviour of password state policies.
IS_SECOND_OID_INSTALL=false
#Provide true if RAC database is used.
IS_OID_RACDB_INSTANCE_NAME_SPECIFIED=false
#Provide the ODS Schema password.
ODS_PASSWORD=<SECURE VALUE>
#Provide the ODSSM Schema password.
ODSSM_PASSWORD=<SECURE VALUE>
#Confirm the ODS Schema password.
CONFIRM_ODS_PASSWORD=<SECURE VALUE>
#Confirm the ODSSM Schema password.
CONFIRM_ODSSM_PASSWORD=<SECURE VALUE>
#Provide the DN of the top node for storing component data in the directory. This can be a realm, or the top
#Provide User Session Store type for Oracle Identity Federation. Valid values are MEMORY and RDBMS.
OIF_USER_SESSION_STORE_TYPE=MEMORY
#Provide Message Store type for Oracle Identity Federation. Valid values are MEMORY and RDBMS.
OIF_MESSAGE_STORE_TYPE=MEMORY
#Provide Configuration Store type for Oracle Identity Federation. Valid values are FILE and RDBMS.
OIF_CONFIGURATION_STORE_TYPE=FILE
#Provide true if User Data Store type is LDAP.
IS_OIF_USER_STORE_LDAP_TYPE=true
#Provide true if User Data Store type is RDBMS.
IS_OIF_USER_STORE_RDBMS_TYPE=false
#Provide true if Federation Data Store type is LDAP.
IS_OIF_FEDERATION_STORE_LDAP_TYPE=true
#Provide true if Federation Data Store type is RDBMS.
IS_OIF_FEDERATION_STORE_RDBMS_TYPE=false
#Provide true if Oracle Identity Federation Store is of type RDBMS.
IS_OIF_STORE_RDBMS_TYPE=false
#Provide true if Federation Authentication Mechanism is LDAP.
IS_OIF_AUTHENTICATION_LDAP_TYPE=true
#Provide true if Message Store type is RDBMS.
IS_OIF_MESSAGE_STORE_RDBMS_TYPE=false
#Provide true if Configuration Store type is RDBMS.
IS_OIF_CONFIGURATION_STORE_RDBMS_TYPE=false
#Provide true if Federation Data Store type is XML.
IS_OIF_FEDERATION_STORE_XML_TYPE=false
[SYSTEM]
[APPLICATIONS]
#Provide true if configuring in a clustered environment.
IS_CLUSTER_CONFIGURATION=false
[RELATIONSHIPS]
#Provide true to configure Oracle Internet Directory.
CONFIGURE_OID_COMPONENT=true
#Provide true to configure Oracle Directory Integration Platform.
CONFIGURE_DIP_COMPONENT=true
#Provide true to configure Oracle Virtual Directory.
CONFIGURE_OVD_COMPONENT=true
#Provide true to configure Oracle Identity Fedration.
CONFIGURE_OIF_COMPONENT=true
#Provide true to configure Oracle Http Server.
CONFIGURE_OHS_COMPONENT=true
#Provide true to configure Oracle Directory Service Manager.
CONFIGURE_ODSM_COMPONENT=true
#Provide true to configure Enterprise Management.
CONFIGURE_EM_COMPONENT=true
#Provide true to configure federation components.
FEDERATION_COMPONENTS_FOR_CONFIGURE=true
#Provide true to configure management components.
MANAGEMENT_COMPONENTS_FOR_CONFIGURE=true
#Provide the list of components selected for configuration separated by colon. Example
OID:OVD:DIP:ODSM
SELECTED_COMPONENTS_FOR_CONFIGURATION=OID:DIP:OVD:ODSM:OIF:OHS:EM: Oracle
Database WebLogic IDM JasperReports Howto
#Enter the full path, listen port, and service name for the database, for example
myserver.mycompany.com:1111:mydb1. Separate the path, port, and service name using a colon (:).
OID_DB_INFO=localhost:1521:orcl.haker.ba
#Provide the database OID schema name.
OID_DB_USER=ODS
#Provide the database ODSSM schema name
ODSSM_DB_USER=ODSSM
#Provide the ODS schema password.
ODS_PASSWORD=<SECURE VALUE>
#Provide the ODSSM schema password.
ODSSM_PASSWORD=<SECURE VALUE>
#Provide false if service name is used.
IS_SERVICE_ID_USED=false
#Provide true if RAC database URL with instance name is used.
OID_RACDB_URL_WITH_INSTANCE_NAME=<SECURE VALUE>
#Provide the LDAP Type for Authentication Mechanism. Valid values are Oracle Internet Directory,Oracle
Virtual Directory,Microsoft Active Directory,SunOne and IBM Directory Server
AUTHENTICATION_LDAP_TYPE=Oracle Internet Directory
#Provide the LDAP URL for Authentication Mechanism. Format:ldap://host:port or ldaps://host:port.
AUTHENTICATION_LDAP_TYPE_LDAP_URL=
#Provide the user name of LDAP server for Authentication Mechanism.
AUTHENTICATION_LDAP_TYPE_LDAP_USER_NAME=cn=orcladmin
#Provide the LDAP server password for Authentication Mechanism.
AUTHENTICATION_LDAP_TYPE_LDAP_PASSWORD=<SECURE VALUE>
FEDERATION_LDAP_USER_RECORD_CONTEXT=cn=fed,dc=haker,dc=ba
#Provide the LDAP Type for Federation Data Store. Valid values are Oracle Internet Directory,Microsoft
Active Directory,SunOne and IBM Directory Server
FEDERATION_LDAP_TYPE=Oracle Internet Directory
#Provide the LDAP URL for Federation Data Store. Format:ldap://host:port or ldaps://host:port.
FEDERATION_LDAP_URL=
#Provide the LDAP Container Object Class for Federation Data Store.
FEDERATION_LDAP_CONTAINER_OBJECT_CLASS=
#Provide the LDAP Domain Prefix for Federation Data Store. This value is needed only when LDAP type is
Microsoft Active Directory.
FEDERATION_LDAP_AD_DOMAIN_PREFIX=
#Provide the user name of LDAP server for Federation Data Store.
FEDERATION_LDAP_USER_NAME=cn=orcladmin
#Provide the LDAP server password for Federation Data Store.
FEDERATION_LDAP_PASSWORD=<SECURE VALUE>