2003-12-19 17:03:12 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Please, change user, password and dbase to match your configuration.
|
|
|
|
*
|
|
|
|
* */
|
2005-12-01 13:39:48 +00:00
|
|
|
|
|
|
|
$user = "system";
|
|
|
|
$password = "system";
|
|
|
|
$dbase = "oracle";
|
2003-12-19 17:03:12 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* You should have privileges to create tables in this schema
|
|
|
|
*
|
|
|
|
* */
|
|
|
|
/*
|
2005-12-01 13:39:48 +00:00
|
|
|
$schema = "system";
|
|
|
|
*/
|
2003-12-19 17:03:12 +00:00
|
|
|
|
2005-12-01 13:39:48 +00:00
|
|
|
$table_name = "tb".substr(str_replace(Array(".", "-"), "_", php_uname("n")), 0, 5);
|
|
|
|
$type_name = strtoupper("tp".substr(str_replace(Array(".", "-"), "_", php_uname("n")), 0, 5));
|
|
|
|
|
2003-12-19 17:03:12 +00:00
|
|
|
if (!empty($dbase)) {
|
2005-12-01 13:39:48 +00:00
|
|
|
$c = ocilogon($user,$password,$dbase);
|
2003-12-19 17:03:12 +00:00
|
|
|
}
|
|
|
|
else {
|
2005-12-01 13:39:48 +00:00
|
|
|
$c = ocilogon($user,$password);
|
2003-12-19 17:03:12 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (!empty($schema)) {
|
|
|
|
$schema = $schema.".";
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
$schema = '';
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|