Вы находитесь на странице: 1из 14

Removing Current Informix 11.7 Installation.

Uninstalling an Informix database server installation (UNIX and Linux)

1.- Stop your Informix instance using command:


onmode -ky

2.- Use root user.

3.- Run the uninstallids command as follows:


 $INFORMIXDIR/uninstall/uninstall_ids/uninstallids -i gui to uninstall the products
in GUI mode.
 $INFORMIXDIR/uninstall/uninstall_ids/uninstallids -i console to uninstall the
products in console mode.
After the Informix products are removed, you can manually delete the $INFORMIXDIR directory. It is
not deleted automatically.

2.- Follow the instructions in the application. By default, the product and all its features are selected to
be removed. If you want to remove just some features, ensure that only those features are selected.

Uninstalling an Informix database server installation (UNIX and Linux)


Use the uninstallserver command to remove an Informix® database server installation or to remove
some of the database server features. The uninstallation application started by this command does not
remove or modify Client SDK, Informix Connect, or the JDBC Driver.
To remove IBM® Informix, you must have root privileges. For non-root installations, it is also possible
to complete uninstallation by logging as the user who installed the product.
Important: Do not remove any IBM Informix products by manually deleting files.
If you have multiple installations of the product on the computer, the uninstallation application affects
only the server installation located in the $INFORMIXDIR path that you indicate in the command.
To remove Informix from Linux or UNIX systems by using the uninstaller:
1. Run the uninstallserver command as follows:
 $INFORMIXDIR/uninstall/uninstall_server/uninstallserver -i gui to
uninstall Informix in GUI mode. Alternatively, you can run the command as
$INFORMIXDIR/uninstall/uninstall_server/uninstallserver -i swing.
 $INFORMIXDIR/uninstall/uninstall_server/uninstallserver -i console to
uninstall Informix in console mode.
2. Follow the instructions in the application. By default, the product and all its features are
selected to be removed. If you want to remove just some features, ensure that only those
features are selected.
After Informix is removed, you can manually delete the $INFORMIXDIR directory. It is not deleted
automatically.
IBM Confidential
3.- Remove all files inside informix user home firectory by running next command:
rm -rf /home/informix/*

Source:
http://www-
01.ibm.com/support/knowledgecenter/SSGU8G_11.70.0/com.ibm.igul.doc/ids_in_089x.htm

Installing Informix 12.10.FC5 (Whirpool Customer Installed Version).

1.- From http://w3-103.ibm.com:443/software/xl/download/ticket.wss using part number (CN4EQEN)


and generating a https link to download to a valid path into server: /opt/informix_pkgs/ preciously
created, move to path and next untar file using “tar xvf ENT1210FC5_LIN64_EN.tar” on same path.
* Remove installation packages previously downloaded from 11.7 version.
2.- Create INFORMIXDIR:
root> mkdir /opt/ibm/informix
root> chown informix:informix /opt/ibm/informix
3.-Run ids_install script to launch installation Process (IIP) as root user, if you are on script path just
type ./ids_install, or run with absolute path: /opt/informix_pkgs/ids_install.
4.- Press Enter Key to Continue after first IIP promt to start:

IBM Confidential
5.- Accept Agreement by typing 1 + Enter Key on Licensing prompt:

6.- Provide location for installation: /opt/IBM/informix and confirm:

8.- On installation Select “Typical Installation” Enter Key.


IBM Confidential
9.- On next screen just press enter key to continue by leaving default hostname value as displayed.

10.- Leve default value on Port Number for Apache Server:

11.- Leave default Value for Enable OAT Password Protection and press enter key.

IBM Confidential
12.- Use default User for OAT and press enter key.

13.- Type a password for admin user, preffer to use informix for this password and press enter key and
confirm.

IBM Confidential
14.- Type 1 to accept International Program License Agreement and press enter key.

15.- Type 2 to Not Create an Instance during Installation and press enter key.

IBM Confidential
16.- Check Installation Summary and press enter key to Continue:

17.- Confirm installation pressing enter key to start.

18.- Confirm The succesfull installation when completes and press enter to exit installer.

IBM Confidential
Instance Creation.

1.- Change to user informix (if you have the line which load env vars from previous instance we create
edit your .bash_profile file by naming the new env vars file which we next create on this step by
naming it setenv.sh)
2.- Create setenv.sh file on informix user home directory, and add next values to it.

3.- Create sqlhosts file informix user home directory.


4.- Edit sqlhosts.infx_tseries file and next two lines on it by matching to your server hostname.

5.- Using root user edit / add both services which mathc with servers named on sqlhosts.infx_tseries
file using 8298 & 8197 ports.

6.- Back to informix user create chunk files on informix user home directory.
touch ts_rootdbs
touch ts_logdbs
touch ts_phydbs
touch ts_sbspace
touch ts_tempdbs1
touch ts_tempdbs2
touch ts_tempdbs3
touch ts_datadbs1***

***This file is repeated from 1 to 5 to have from touch ts_datadbs1 to touch ts_datadbs5.

* For this step and when you are creating several files you can consider use a custom script
using a bash file with a loop to create files recursively.
7.- Change to $INFORMIXDIR/etc/ path, and run a copy from onconfig.std into
onconfig.infx_tseries.

8.- Open onconfig.infx_tseries file in edit mode to change next settings on it:
IBM Confidential
ROOTNAME ts_rootdbs
ROOTPATH /home/informix/ts_rootdbs
ROOTSIZE 2048000
MIRRORPATH $INFORMIXDIR/tmp/ts.root_mirror

PHYSFILE 14000

LOGFILES 10

DBSPACETEMP ts_tempdbs1,ts_tempdbs2,ts_tempdbs3

SBSPACENAME sbspace
SYSSBSPACENAME sbspace

SERVERNUM 1
DBSERVERNAME infx_tseries

#NETTYPE ipcshm,1,50,CPU <- Comment this Line


NETTYPE soctcp,1,64,NET <- Add this Line

MULTIPROCESSOR 1
VPCLASS cpu,num=2,noage
VP_MEMORY_CACHE_KB 2048

CLEANERS 8
DIRECT_IO 1

TAPEDEV /dev/null

LTAPEDEV /dev/null

USEOSTIME 1
STACKSIZE 96
ALLOW_NEWLINE 1

RAS_PLOG_SPEED 261169

BUFFERPOOL default,buffers=10000,lrus=8,lru_min_dirty=50.00,lru_max_dirty=60.50
BUFFERPOOL size=2k,buffers=50000,lrus=8,lru_min_dirty=50,lru_max_dirty=60
BUFFERPOOL size=8K <- Add this extra line.
9.- Run informix command to initialize the new instance:
oninit -iy
10.- Confirm the new instance is Online by running onstat – command.

IBM Confidential
11.- Add the rest of dbspaces to the chunk files we create on step 6. Use 512Mb to ts_logdbs,
ts_sbspace, ts_tempdbs*, 1G to ts_phydbs and ts_datadbs*

onspaces -c -d ts_logdbs -o 0 -p /home/informix/ts_logdbs -s 524288


onspaces -c -d ts_phydbs -o 0 -p /home/informix/ts_phydbs -s 1024000
onspaces -c -S ts_sbspace -o 0 -p /home/informix/ts_sbspace -s 524288
onspaces -c -d ts_tempdbs1 -t -o 0 -p /home/informix/ts_tempdbs1 -s 524288
onspaces -c -d ts_tempdbs2 -t -o 0 -p /home/informix/ts_tempdbs2 -s 524288
onspaces -c -d ts_tempdbs3 -t -o 0 -p /home/informix/ts_tempdbs3 -s 524288
onspaces -c -d ts_datadbs1 -o 0 -p /home/informix/ts_datadbs1 -s 1024000
onspaces -c -d ts_datadbs2 -o 0 -p /home/informix/ts_datadbs2 -s 1024000
onspaces -c -d ts_datadbs3 -o 0 -p /home/informix/ts_datadbs3 -s 1024000
onspaces -c -d ts_datadbs4 -o 0 -p /home/informix/ts_datadbs4 -s 1024000
onspaces -c -d ts_datadbs5 -o 0 -p /home/informix/ts_datadbs5 -s 1024000

* Check if you have enough space on your file system, if not you can gain space by dropping unneeded
files, or by reducing the size for the new dbspaces.
12.- Confirm the new dbspaces creation by running onstat -d command.
13.- Create stores_ts database by running next command as informix user and proper env vars set.
dbaccessdemo stores_ts -dbspace ts_datadbs1

Additional steps which are not required for now but they were also runned while creating this dev
Informix server for Whirpool customer. Please study them and if you can fit them into your server run
in the way he can fit to your available server resources.

1.- Change Physical log size & location by running:


onparams -p -s 2048000 -d ts_phydbs -y
2.- If is needed remove logical logs wich where placed on ts_rootdbs dbspace when initialization, on
this instance in example there where removed 1 to 14 logical logs wich was not being used
By running onparams -d -l $i -y (where $i is the logical log number displayed on prior screen) from 1
to 14.
3.- We now Create 90 new logical logs on ts_logdbs dbspace by running “onparams -a -d ts_logdbs -s
1000” (x90).
4.- Now we need to move C & L flags from logical log by running “onmode -l” as may time as needed
till flags are shown on new logical logs created on prior step. Once that L flag is moved to the new run
“onmode -c” to issue a checkpoint and move the L flag to the current log
5.- Now logical logs wich re still on ts_rootdbs can be deleted by running onparams -d -l $i -y (where
$i is the logical log number displayed on prior screen wich on this time needs to be from 15 to 20).
6.- Create logical logs to complet serie from 1 to 100 by running “onparams -a -d ts_logdbs -s 1000”
(x15).
7.- Create 19 more chunk files on storage/chunks path by running “touch ts_datadbs$i;chown
informix:informix ts_datadbs$i;chown 660 ts_datadbs$i “ where $i means the number of file from 2 to
19.
8.- Create 19 more dbspaces by runing “onspaces -c -d ts_datadbs$i -o 0 -s 10485760 -p
/opt/ibm/informix/storage/chunks/ts_datadbs$i” where $i means the number of file from 2 to 19.

IBM Confidential
9.- If needed and just as a recommendation re-start your informix instance by running as informix user:
onmode -ky (to stop instance wich env vars are pointing)
oninit -v (to start instances wich env vars are pointing)
onstat – (to cofirm instances is up & running)

Enabling Open Admin Tool.


1.- Disable iptables service if it is enabled:
service iptables stop

2.- Start OAT: From the $INFORMIXDIR/OAT directory, run the StartApache script.
cd $INFORMIXDIR/OAT
./StartApache

* If you face next lib path issue you will need to run recommended steps below:

- Change to /usr/path and create a soft link like this: ln -s /lib64/libexpat.so.1 libexpat.so.0
- Change to /usr/lib64/ path and create a soft link like this: ln -s /usr/lib64/libssl.so.10 libssl.so.6
and ln -s libcrypto.so.10 libcrypto.so.6
3.- On a browser window type the hostname form your server plus :8080, to open the OAT on the
defined port.
Http://yourhostname.ibm.com:8080
4.- On page displayed click on “Start Install” link to complete php installation and enable the OAT
tool.

IBM Confidential
5.- On next page Accept License Agreement and press next button:

6.- Check installation summary and press Next button:

7.- Accept default configuration calues and press Save button:

* Ignore the Security Warning and press Save button again.

8.- Press Next button to Create the Connectin Database:

IBM Confidential
9.- Press Next Button when Database connections completes:

10.- Select All Plug-ins to install and confirm each one of it and next press Next Button:

11.- Confirm the Succcesful Plug-ins installation and press Next button:

12.- Confirm Succesful OAT Installation and press Finish Button.

13.- Type the information from your informix instance and Test Connection and next login to check the
monitor options inside OAT.

IBM Confidential
Feel free to explore several options inside OAT to monitor, and administrate your Informix Server.

Source:
http://www-01.ibm.com/support/knowledgecenter/SSGU8G_12.1.0/com.ibm.sa.doc/admintools.htm

Granting User to Connect to Informix Database using OAT.


1.- As root user create a new user on your server command line interface called testuser1 with informix
as password, next adding it to informix group.
Useradd -G informix testuser1
passwd testuser1
New-Password:informix
Re-type:informix
2.- Log into OAT using informix user, and next go to Server Administration > User Privileges and
grant Connect privilege to testuser1 user to stores_ts database.

3.- Test by login on OAT as testuser1.


4.- Run connection test to testuser1 on command line interface enabling env vars tu testuser1 user,
confirm this user has acces to configuration files (sqlhosts.infx_tseries file), run dbaccess command
and try to connect to stores_ts db and run queys inside.

IBM Confidential

Вам также может понравиться