Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

oci_server_version(3) [php man page]

OCI_SERVER_VERSION(3)													     OCI_SERVER_VERSION(3)

oci_server_version - Returns the Oracle Database version

SYNOPSIS
string oci_server_version (resource $connection) DESCRIPTION
Returns a string with the Oracle Database version and available options PARAMETERS
o $connection - RETURN VALUES
Returns the version information as a string or FALSE on error. EXAMPLES
Example #1 oci_server_version(3) example <?php $conn = oci_connect("hr", "hrpwd", "localhost/XE"); echo "Server Version: " . oci_server_version($conn); // Displays: // Server Version: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production // With the Partitioning, OLAP, Data Mining and Real Application Testing option oci_close($conn); ?> NOTES
Note In PHP versions before 5.0.0 you must use ociserverversion(3) instead. This old name still can be used. However it is deprecated and not recommended. SEE ALSO
oci_client_version(3). PHP Documentation Group OCI_SERVER_VERSION(3)

Check Out this Related Man Page

OCI_SET_CLIENT_INFO(3)													    OCI_SET_CLIENT_INFO(3)

oci_set_client_info - Sets the client information

SYNOPSIS
bool oci_set_client_info (resource $connection, string $client_info) DESCRIPTION
Sets the client information for Oracle tracing. The client information is registered with the database when the next 'roundtrip' from PHP to the database occurs, typically when an SQL statement is executed. The client information can subsequently be queried from database administration views such as V$SESSION. The value may be retained across persistent connections. PARAMETERS
o $connection -An Oracle connection identifier, returned by oci_connect(3), oci_pconnect(3), or oci_new_connect(3). o $client_info - User chosen string up to 64 bytes long. RETURN VALUES
Returns TRUE on success or FALSE on failure. EXAMPLES
Example #1 Setting the client information <?php $c = oci_connect('hr', 'welcome', 'localhost/XE'); // Record the client information oci_set_client_info($c, 'My Application Version 2'); // Code that causes a roundtrip, for example a query: $s = oci_parse($c, 'select * from dual'); oci_execute($s); oci_fetch_all($s, $res); sleep(30); ?> // While the script is running, the administrator can see the client // information: sqlplus system/welcome SQL> select client_info from v$session; NOTES
Note Oracle version requirement This function is available when PHP is linked with Oracle Database libraries from version 10 g onwards. Tip Performance With older versions of OCI8 or the Oracle Database, the client information can be set using the Oracle DBMS_APPLICATION_INFO pack- age. This is less efficient than using oci_set_client_info(3). Caution Roundtrip Gotcha Some but not all OCI8 functions cause roundtrips. Roundtrips to the database may not occur with queries when result caching is enabled. SEE ALSO
oci_set_module_name(3), oci_set_action(3), oci_set_client_identifier(3). PHP Documentation Group OCI_SET_CLIENT_INFO(3)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to format this?

Hi, All: I got a output from run a script as follows: ____________________________________________________ SQL*Plus: Release 8.0.5.0.0 - Production on Thu Jul 18 11:25:1 2002 (c) Copyright 1998 Oracle Corporation. All rights reserved. Connected to: Oracle8 Enterprise Edition... (7 Replies)
Discussion started by: yxiao
7 Replies

2. Shell Programming and Scripting

Unix Oracle

Through a shell script ... I am invoking sql plus.. Code is as follows... echo " set feedback off verify off pagesize 0 select column from table " | sqlplus -s/@dbname | read var_col Now if oracle throws an exception for above select statement ...then how can i catch it ?... (15 Replies)
Discussion started by: dhananjaysk
15 Replies

3. Solaris

Urgent Help!!!

Hi all! I have one big problem! Today, I do not log in my server which contains a production Oracle Database, however, it still runs. No console, no telnet, no SSH is to be allowed. I do not understand, really. Google searching, I found that, one action can cause it. It is described like... (12 Replies)
Discussion started by: trantuananh24hg
12 Replies

4. Solaris

Redirect an application with a Serial connection

Hi community, I've currently working on SUN Server V490 and I'm connecting with a Serial port (I DON'T HAVE ANY IP CONNECTIVITY)...I need to redirect the graphic interface of Oracle with the dbca command; I know a way with an IP Connectivity ( use a X-Server and then setenv DISPLAY... (7 Replies)
Discussion started by: Sunb3
7 Replies

5. Shell Programming and Scripting

How to extract just a word from a File in Shell?

Hello Friends, I have a txt file which has data like this TNS Ping Utility for Solaris: Version 10.2.0.3.0 - Production on 23-MAR-2010 15:38:42 Copyright (c) 1997, 2006, Oracle. All rights reserved. Used parameter files: Used TNSNAMES adapter to resolve the alias Attempting to... (7 Replies)
Discussion started by: njafri
7 Replies

6. Programming

Oracle Database: INSERT INTO with TO_DATE function

Hello, I am writting a procedure in shell script as, set serveroutput on declare date_gen DATE := $DATEGEN; begin INSERT INTO TBL1 ( EMPNAME,EMPID,EMPBDATE) VALUES($EMPNAME,$EMPID,TO_DATE(date_gen,'YYYY-MM-DD')); end; / Where DATEGEN is unix string variable which I need to use into... (10 Replies)
Discussion started by: Poonamol
10 Replies

7. Solaris

OPS Center Email Notifications

Hi, Does any one know how to configure email notifications (to exchange) in Oracle Enterprise Manager 11g OPS Center? I have gone through the documentation and have done everything it asked, but still no notifications via email. I get the following error: At the OS level i tried sending email... (20 Replies)
Discussion started by: Mack1982
20 Replies

8. Solaris

IPMP on Private interconnects

I have a Oracle dbase running in a Solaris 10 cluster and have two private interconnects that are being used for communication. Is there any way to connect these two interconnects together using IPMP for redundancy? I've made several attempts with no luck so far and was wondering if anyone had... (17 Replies)
Discussion started by: goose25
17 Replies

9. Shell Programming and Scripting

Mask the Oracle Database Data

Hi, We have to mask the data that is coming from production environment to Non-production environment. The database is running in oracle platform. If anybody has generic scripts to achive this task,it would be great if that can be shared with me? Thank you, Jayaprakash. (10 Replies)
Discussion started by: bandaru_0810
10 Replies

10. Programming

Ways to preserve a memory cache

The environment is Java/Windows. The program keeps near real-time state in memory cache, which is updated by multiple sources, size of the cache is roughly 500 MB, frequency of updates is ~ 20 per second. I am looking into different ways to keep current snapshot of the memory on the disk for a)... (9 Replies)
Discussion started by: migurus
9 Replies

11. Shell Programming and Scripting

Is shell's next line character '\' the cause of this issue ?

Oracle version: 11.2.0.1 /Red Hat Enterprise Linux Server release 5.4 (Tikanga) Hi, impdp is a command line utility in oracle to import data into a DB schema. Typically impdp command along with its parameters is run in a single line like impdp \'/ as sysdba\' DIRECTORY=DATA_PUMP_DIR... (8 Replies)
Discussion started by: omega3
8 Replies

12. Solaris

OVM Server for SPARC ... Need Your Help Guys !

I have two SPARC T4-2 servers: - Oracle Solaris 11.1 Installed. - Oracle VM Server for SPARC 3.0 software Installed. - Shared LUN provisioned to both servers from Clariion CX4 storage box (shared LUN to be used for the Live Migration of the VMs). - Oracle VM Agent 3.2.1 for SPARC installed. ... (14 Replies)
Discussion started by: Mack1982
14 Replies

13. Shell Programming and Scripting

Need to pass Oracle SQL output to Linux and back... Help!

Hi all, Hopefully you can help. This is what I'm trying to achieve: Obtain a list of usernames out of an Oracle Database Based on this list, link each username with an Oracle Internet Directory (OID) GUID Using the username and GUID perform a database update for all users Here are the... (7 Replies)
Discussion started by: exm
7 Replies

14. Solaris

External Network Connectivity w/Oracle VM Server for SPARC & Solaris 11

Hello all, thanks for reading my question: So I've been a Unix/Linux SysAdmin for a couple years, and I'm a bit over my head running solo, trying to set up LDoms using Oracle VM Server 3.1 for SPARC. I've been very careful, and things have gone well up until the point I try to access the new... (9 Replies)
Discussion started by: Lyxix
9 Replies

15. AIX

How to deal with Tar error ?

Hello Folks, while making a tar file, got this error root@clodb:/clodbvg>/opt/freeware/bin/tar cvf - /oradata | gzip > /clodbvg/bkp_30MAY16.tgz /opt/freeware/bin/tar: Removing leading `/' from member names /oradata/ /oradata/JAVA/ /oradata/JAVA/.toc /oradata/JAVA/Java131.rte... (16 Replies)
Discussion started by: filosophizer
16 Replies