9 More Discussions You Might Find Interesting
1. Red Hat
I have an Oracle Linux 7.1 vsphere host built. It's be preconfigured with our security configurations.
What I would like to do is unconfigure this host. Then set the host to do firstboot --reconfigure.
how do I do that using /etc/sysconfig/firstboot?
I've tried setting
... (10 Replies)
Discussion started by: os2mac
10 Replies
2. Linux
Hi everyone,
I am trying to prevent the ehci_hcd kernel module to load at boot time.
Here's what I've tried so far:
1) Add the following line to /etc/modprobe.d/blacklist.conf (as suggested here):
2) Blacklisted the module by adding the following string to
3) Tried to blacklist the module... (0 Replies)
Discussion started by: gacanepa
0 Replies
3. Solaris
Hi,
I wanted to know if a reconfig reboot is necessary from the ok prompt when am changing the CPU or a simple boot command would also work...?
Thanks in advance. (5 Replies)
Discussion started by: aksijain
5 Replies
4. Solaris
will reboot -- -r update boot_archive ?
this is the what I see on my console.
# reboot -- -r
15+0 records in
15+0 records out
syncing file systems... done
It doesn't say updating /platform/sun4u/boot_archive as it displayed on my console after init 0or init 6 ? (3 Replies)
Discussion started by: zigi_p5
3 Replies
5. Solaris
Hi gurus
Could anybody tell me which file is read by kernel to set its default system kernal parameters values in solaris. Here I am not taking about /etc/system file which is used to load kernal modules or to change any default system kernal parameter value
Is it /dev/kmem file or something... (1 Reply)
Discussion started by: girish.batra
1 Replies
6. Linux
supermicro(dual core) server getting rebooted after "decompressing the kernel;booting the kernel" message comes.
I tried giving acpi=off to the kernel command line but same problem.It shows everything ok and no problem with memory and processors and power supplies.Wt could be the reason?
It has... (1 Reply)
Discussion started by: pankajd
1 Replies
7. Solaris
Current Setup:
OS: Solaris 10 (5.10) x64
Motherboard: SUPERMICRO MBD-PDSME+-O LGA 775 Intel 3010
SATA Controller: SUPERMICRO AOC-SAT2-MV8 - SATA Controller (x2)
Link Aggregated @ 2Gb: 110MB sustained throughput :b:
NAME STATE READ WRITE CKSUM
storagepool ONLINE ... (3 Replies)
Discussion started by: sol72
3 Replies
8. SuSE
Hi All,
Is there a max number of slabs that can be used per kernel module? I'm having a tough time finding out that kind of information, but the array 'node_zonelists' (mmzone.h) has a size of 5. I just want to avoid buffer overruns and other bad stuff.
Cheers,
Brendan (4 Replies)
Discussion started by: Brendan Kennedy
4 Replies
9. Programming
hi all!
i have developed a mechanism in system.c to count how many times each kernel call is called. The results are held in an array in system.c . What i want to do is to create a new kernel call which will print this array. I need help in passing the array from system.c to the new kernel call. ... (5 Replies)
Discussion started by: aureliano
5 Replies
LEARN ABOUT PHP
oci_new_connect
OCI_NEW_CONNECT(3) OCI_NEW_CONNECT(3)
oci_new_connect - Connect to the Oracle server using a unique connection
SYNOPSIS
resource oci_new_connect (string $username, string $password, [string $connection_string], [string $character_set], [int $ses-
sion_mode])
DESCRIPTION
Establishes a new connection to an Oracle server and logs on.
Unlike oci_connect(3) and oci_pconnect(3), oci_new_connect(3) does not cache connections and will always return a brand-new freshly opened
connection handle. This is useful if your application needs transactional isolation between two sets of queries.
PARAMETERS
o $username
- The Oracle user name.
o $password
- The password for $username.
o $connection_string
-Contains the Oracle instance to connect to. It can be an Easy Connect string, or a Connect Name from the tnsnames.ora file, or
the name of a local Oracle instance. If not specified, PHP uses environment variables such as TWO_TASK (on Linux) or LOCAL (on
Windows) and ORACLE_SID to determine the Oracle instance to connect to. To use the Easy Connect naming method, PHP must be linked
with Oracle 10 g or greater Client libraries. The Easy Connect string for Oracle 10 g is of the form: [//]host_name[:port][/ser-
vice_name]. From Oracle 11 g, the syntax is: [//]host_name[:port][/service_name][:server_type][/instance_name]. Service names can
be found by running the Oracle utility lsnrctl status on the database server machine. The tnsnames.ora file can be in the Oracle
Net search path, which includes $ORACLE_HOME/network/admin and /etc. Alternatively set TNS_ADMIN so that $TNS_ADMIN/tnsnames.ora
is read. Make sure the web daemon has read access to the file.
o $character_set
-Determines the character set used by the Oracle Client libraries. The character set does not need to match the character set used
by the database. If it doesn't match, Oracle will do its best to convert data to and from the database character set. Depending on
the character sets this may not give usable results. Conversion also adds some time overhead. If not specified, the Oracle Client
libraries determine a character set from the NLS_LANG environment variable. Passing this parameter can reduce the time taken to
connect.
o $session_mode
-This parameter is available since version PHP 5 (PECL OCI8 1.1) and accepts the following values: OCI_DEFAULT, OCI_SYSOPER and
OCI_SYSDBA. If either OCI_SYSOPER or OCI_SYSDBA were specified, this function will try to establish privileged connection using
external credentials. Privileged connections are disabled by default. To enable them you need to set oci8.privileged_connect to
On. PHP 5.3 (PECL OCI8 1.3.4) introduced the OCI_CRED_EXT mode value. This tells Oracle to use External or OS authentication,
which must be configured in the database. The OCI_CRED_EXT flag can only be used with username of "/" and a empty password.
oci8.privileged_connect may be On or Off. OCI_CRED_EXT may be combined with the OCI_SYSOPER or OCI_SYSDBA modes. OCI_CRED_EXT is
not supported on Windows for security reasons.
RETURN VALUES
Returns a connection identifier or FALSE on error.
EXAMPLES
The following demonstrates how you can separate connections.
Example #1
oci_new_connect(3) example
<?php
// create table mytab (mycol number);
function query($name, $c)
{
echo "Querying $name
";
$s = oci_parse($c, "select * from mytab");
oci_execute($s, OCI_NO_AUTO_COMMIT);
$row = oci_fetch_array($s, OCI_ASSOC);
if (!$row) {
echo "No rows
";
} else {
do {
foreach ($row as $item)
echo $item . " ";
echo "
";
} while (($row = oci_fetch_array($s, OCI_ASSOC)) != false);
}
}
$c1 = oci_connect("hr", "welcome", "localhost/orcl");
$c2 = oci_new_connect("hr", "welcome", "localhost/orcl");
$s = oci_parse($c1, "insert into mytab values(1234)");
oci_execute($s, OCI_NO_AUTO_COMMIT);
query("basic connection", $c1);
query("new connection", $c2);
oci_commit($c1);
query("new connection after commit", $c2);
// Output is:
// Querying basic connection
// 1234
// Querying new connection
// No rows
// Querying new connection after commit
// 1234
?>
See oci_connect(3) for further examples of parameter usage.
SEE ALSO
oci_connect(3), oci_pconnect(3).
PHP Documentation Group OCI_NEW_CONNECT(3)