Help Me to Decide


 
Thread Tools Search this Thread
Operating Systems AIX Help Me to Decide
# 1  
Old 03-09-2010
Help Me to Decide

Dear friends I am an AIX administrator but now I am taking DB2 trainings.. DB2 is interesteing but if I want to success well I have to givap administering AIX systems because to do both of them its really tiresome and needs lot of time.. So anybody please advice me if you were at my place what would you do :-)
Login or Register to Ask a Question

Previous Thread | Next Thread

5 More Discussions You Might Find Interesting

1. Web Development

PHP and MySQL. Help to decide on a book

Hi all, I am studying PHP and MySQL and I have landed to use this book "Web Database Applications with PHP and MYSQL". I could see it has all I need (based on my limited experience on the subject and my requirements) to quickly learn how to build such applications as a web store, or any... (0 Replies)
Discussion started by: faizlo
0 Replies

2. UNIX for Dummies Questions & Answers

Checking files in remote server and decide to copy file or not

Hi there, I have a problem in my script, I need to check whether file exists in remote server or not, if the file exists, then stop copy else copy the file to the server.. my code is something like this while read $server do if ssh $server "cd $directory_name; if ; then echo "Error:... (2 Replies)
Discussion started by: beezy
2 Replies

3. Solaris

How to decide installing a Software group

Hello, I need to install a Jboss AS 4.2 asap. But I dont want to use the GUI. I need to install a solaris 10 server with the minimal packages but I dont know how deep I should customize and select the packages. You guys , how you decide to select a package installation level ? Each server's... (7 Replies)
Discussion started by: shadowfaxxxx
7 Replies

4. Shell Programming and Scripting

Script which can decide where to point i/p

Dear friends, :) I need your help again. This time I have written 2 scripts i.e. A.sh & B.sh and both of them takes “serial no” as input. Both the scripts are exactly same except one thing, both are pointing to different tables. Now I want to write another script that will decide whether to... (4 Replies)
Discussion started by: anushree.a
4 Replies

5. UNIX for Dummies Questions & Answers

How to decide which unix i have to use

I've got an old laptop and i want to try unix on it, but i'm a unix newbie, so i don't know what i have to choose. We're talking about a laptop with an intel 80C386SX-20 CPU in it, with 2 MB Ram and 40 MB harddisk. Not really powerfull specs. Is it possible to install a unix version on it. Or... (8 Replies)
Discussion started by: rolfvandekrol
8 Replies
Login or Register to Ask a Question
DB2_GET_OPTION(3)							 1							 DB2_GET_OPTION(3)

db2_get_option - Retrieves an option value for a statement resource or a connection resource

SYNOPSIS
string db2_get_option (resource $resource, string $option) DESCRIPTION
Retrieves the value of a specified option value for a statement resource or a connection resource. PARAMETERS
o $resource - A valid statement resource as returned from db2_prepare(3) or a valid connection resource as returned from db2_connect(3) or db2_pconnect(3). o $option - A valid statement or connection options. The following new options are available as of ibm_db2 version 1.6.0. They provide use- ful tracking information that can be set during execution with db2_get_option(3). Note Prior versions of ibm_db2 do not support these new options. When the value in each option is being set, some servers might not handle the entire length provided and might truncate the value. To ensure that the data specified in each option is converted correctly when transmitted to a host system, use only the characters A through Z, 0 through 9, and the underscore (_) or period (.). o $userid - SQL_ATTR_INFO_USERID - A pointer to a null-terminated character string used to identify the client user ID sent to the host database server when using DB2 Connect. Note DB2 for z/OS and OS/390 servers support up to a length of 16 characters. This user-id is not to be confused with the authentication user-id, it is for identification purposes only and is not used for any authorization. o $acctstr - SQL_ATTR_INFO_ACCTSTR - A pointer to a null-terminated character string used to identify the client accounting string sent to the host database server when using DB2 Connect. Note DB2 for z/OS and OS/390 servers support up to a length of 200 characters. o $applname - SQL_ATTR_INFO_APPLNAME - A pointer to a null-terminated character string used to identify the client application name sent to the host database server when using DB2 Connect. Note DB2 for z/OS and OS/390 servers support up to a length of 32 characters. o $wrkstnname - SQL_ATTR_INFO_WRKSTNNAME - A pointer to a null-terminated character string used to identify the client workstation name sent to the host database server when using DB2 Connect. Note DB2 for z/OS and OS/390 servers support up to a length of 18 characters. The following table specifies which options are compatible with the available resource types: Resource-Parameter Matrix +-----------+--------------------------+---+---+---+ | Key | | | | | | | | | | | | | Value | | | | | | | | | | | | Resource Type | | | | | | | | | | +-----------+--------------------------+---+---+---+ |Connection | | | | | | | | | | | | | Statement | | | | | | | | | | | | Result Set | | | | | | | | | | | userid | | | | | | | | | | | | | | | | | | | SQL_ATTR_INFO_USERID | | | | | | | | | | | | X | | | | | | | | | | | | X | | | | | | | | | | | | - | | | | | | | | | | | acctstr | | | | | | | | | | | | | | | | | | | SQL_ATTR_INFO_ACCTSTR | | | | | | | | | | | | X | | | | | | | | | | | | X | | | | | | | | | | | | - | | | | | | | | | | | applname | | | | | | | | | | | | | | | | | | | SQL_ATTR_INFO_APPLNAME | | | | | | | | | | | | X | | | | | | | | | | | | X | | | | | | | | | | | | - | | | | | | | | | | |wrkstnname | | | | | | | | | | | | | | | | | | | SQL_ATTR_INFO_WRKSTNNAME | | | | | | | | | | | | X | | | | | | | | | | | | X | | | | | | | | | | | | - | | | | | | | | | | +-----------+--------------------------+---+---+---+ RETURN VALUES
Returns the current setting of the connection attribute provided on success or FALSE on failure. EXAMPLES
Example #1 Setting and retrieving parameters through a connection resource <?php /* Database Connection Parameters */ $database = 'SAMPLE'; $user = 'db2inst1'; $password = 'ibmdb2'; /* Obtain Connection Resource */ $conn = db2_connect($database, $user, $password); echo "Client attributes passed through connection string: "; /* Create the associative options array with valid key-value pairs */ /* Assign the attributes through connection string */ /* Access the options specified */ $options1 = array('userid' => 'db2inst1'); $conn1 = db2_connect($database, $user, $password, $options1); $val = db2_get_option($conn1, 'userid'); echo $val . " "; $options2 = array('acctstr' => 'account'); $conn2 = db2_connect($database, $user, $password, $options2); $val = db2_get_option($conn2, 'acctstr'); echo $val . " "; $options3 = array('applname' => 'myapp'); $conn3 = db2_connect($database, $user, $password, $options3); $val = db2_get_option($conn3, 'applname'); echo $val . " "; $options4 = array('wrkstnname' => 'workstation'); $conn4 = db2_connect($database, $user, $password, $options4); $val = db2_get_option($conn4, 'wrkstnname'); echo $val . " "; echo "Client attributes passed post-connection: "; /* Create the associative options array with valid key-value pairs */ /* Assign the attributes after a connection is made */ /* Access the options specified */ $options5 = array('userid' => 'db2inst1'); $conn5 = db2_connect($database, $user, $password); $rc = db2_set_option($conn5, $options5, 1); $val = db2_get_option($conn5, 'userid'); echo $val . " "; $options6 = array('acctstr' => 'account'); $conn6 = db2_connect($database, $user, $password); $rc = db2_set_option($conn6, $options6, 1); $val = db2_get_option($conn6, 'acctstr'); echo $val . " "; $options7 = array('applname' => 'myapp'); $conn7 = db2_connect($database, $user, $password); $rc = db2_set_option($conn7, $options7, 1); $val = db2_get_option($conn7, 'applname'); echo $val . " "; $options8 = array('wrkstnname' => 'workstation'); $conn8 = db2_connect($database, $user, $password); $rc = db2_set_option($conn8, $options8, 1); $val = db2_get_option($conn8, 'wrkstnname'); echo $val . " "; ?> The above example will output: Client attributes passed through connection string: db2inst1 account myapp workstation Client attributes passed post-connection: db2inst1 account myapp workstation SEE ALSO
db2_connect(3), db2_cursor_type(3), db2_exec(3), db2_set_option(3), db2_pconnect(3), db2_prepare(3). PHP Documentation Group DB2_GET_OPTION(3)