Php-oracle workspace
hi,
you think that i have a one textbox and one button on my webpage, and i want to write ORacle code in textbox something like that
begin
dbms_output.put_line ('hello!');
end;
after that when i click on the button , i want to display result below.i am using php code to do that things. otherwise i am using oracle 10g express edition,i searched on the net ,and i find a website that exactly what i want to do. this website URL : http://193.140.164.123:5561/isqlplus/login.uix you can enter 'hr' for both username and password. there you can see Workspace.
pls.if u know about this topic write here. thx.
That's a pretty open ended question. Perhaps reading the OCI8 manual http://us.php.net/manual/en/book.oci8.php or getting one of the many fine PHP Oracle books will help get you started.
Similar Messages
-
Width of Report view changes in Oracle Workspace
Hi,
I'm having a problem with BI publisher. With some reports for example the Inventory Adjustment standard report supplied with Oracle retail and BI publisher when selecting values of parameters in the dropboxes and fields the paramter fields width changes and you have to side scroll to reach the end of the report.
This problem is in Oracle workspace when opening BI publisher reports. It only seems to affect certain reports.
So when selecting the first paramter and generating a report the width of the report and paramter field above is as wide as the screen resolution.
But when selecting a secondary paramter for example to get a more fine grained view of the report the entire report field including the paramter field doubles in size and you have to scroll far sideways to see the right side of the workspace and the report field.
Has anyone else encountered this issue and are there any suggestion on how to solve this?
Best regards,
GustavBump.
-
Our client has a (very old) 9.0.1.3 database on Windows 2000
This database (and other products – but that’s not the main concern right now) needs to be upgraded to 11.2.0.4 in Windows2008R2 (64 bit).
A complicating factor might be the use of Oracle Workspace Manager – a lot of tables are Workspace Managed.
We can do it the long way, by upgrading it via 9.1.0.4, 10.2.0.1, 10.2.0.4 -> Export and then, on the new environment, import on 10.2.0.4 en subsequently upgrade it to 10.2.0.5 and then 11.2 (and maybe some more patching afterwards).
But that takes way too long (downtime).
So would it be possible to do it the “easy way”:
Full Database Export of 9.0.1.3, import it into a brand new empty 11.2.0.4 and then upgrade Workspace Manager to 11.2 as well?
Or should we upgrade OWM to 11.2 in the old environment - and is that possible at all?
(FYI: Snippet from the OWM manuals : Workspace Manager supports the import and export of version-enabled tables in one of the following two ways: a full database import and export, and a workspace-level import and export through Workspace Manager procedures. No other export modes, such as schema, table, or partition level, are currently supported).
(On purpose cross-posted in the "Workspace Manager" Forum : Upgrading from 9.0.1.3 to 11.2.0.4 with Oracle Workspace ManagerThe database is not that big (in fact there are two, both around 130Gb).
Affordable downtime is one weekend. The long way (with all patching and upgrading) takes around 100 hours...
We did raise an SR, but the answer was ... take the long way home ;-)
(But, FYI, I didn't raise the SR, so I don't know what question has been asked... If the original question was "how to upgrade", you get the official statement. If you don't ask for other options, you don't get them - so I ask it here...)
And I've seen that presentation... Thanks anyway. -
PHP- Oracle not working- Call to undefined function OCILogon() ERROR
Hi,
I am trying to just do a test program to test php - oracle connection,
My versions are: php5.2.1-Win32 and Oracle 10g
I have made the following settings:
1.) Uncommented the following lines in php.ini:
extension=php_oci8.dll
extension=php_oracle.dll
2.) Set extension_dir = "C:\php-5.2.1-Win32\ext"
Changed the httpd.conf file as: ADDED
1.)LoadModule php5_module C:/php-5.2.1-Win32/php5apache2.dll
2.)PHPIniDir "C:/Program Files/Apache Group/Apache2/conf-"
3.) LoadFile "C:/php/php5ts.dll"
4.)<IfModule php5_module>
<Location />
AddType text/html .php .phps
AddHandler application/x-httpd-php .php
AddHandler application/x-httpd-php-source .phps
</Location>
</IfModule>
5.) AddType application/x-httpd-php .php
AddType application/x-httpd-php .phtml
AddType application/x-httpd-php-source .phps
But when I am tryin to run the following program:
<?php
echo "<h1>OCI Test</h1>\n";
$conn=OCILogon("system", "sheetal16", "orcl");
$stmt = OCIParse($conn, "SELECT table_name FROM user_tables ORDER BY table_name");
OCIExecute($stmt, OCI_DEFAULT);
while (OCIFetch($stmt)) {
$table_name = OCIResult($stmt, "TABLE_NAME");
echo "$table_name<br />\n";
OCIFreeStatement($stmt);
OCILogoff($conn);
?>
I am getting the following error:
OCI Test
Fatal error: Call to undefined function OCILogon() in C:\Program Files\Apache Group\Apache2\htdocs\test2.php on line 3
Please help me to solve this problem.
Thanks,
SheetalSee Re: PHP- Oracle not working- Call to undefined function OCILogon() ERROR
-
Application in apex.oracle workspace
hi,
I got workspace on apex.oracle for making demo application.
having
Workspace :SANJAY_WS
User ID :[email protected]
Password :huveku
Application -Id id 20376
I made an application (id 20376) and exported it then translated it to italian.
It is being uploaded now when i am trying to do
"APPLY XLIFF TRANSLATION" it is giving following error.
ORA-04063: package body "XDB.DBMS_XMLPARSER" has errors ORA-06508: PL/SQL: could not find program unit being called.
Error updating translatable text using XLIFF file.
Please look at it in the apex.oracle workspace.
Please kindly help me in this.
thanks
sanjay.Hi,
Try same username and passwd that you use when login to apex.oracle.com workspace
Br,Jari -
Errors in PHP/Oracle article
Hi,
There are a few errors in the article dealing with PHP/Oracle located at http://otn.oracle.com/oramag/webcolumns/2003/techarticles/hull_php.html
In the listing for the section called "How to use a database":
- $mycursor ora_open ($conn);
should be
$mycursor = ora_open ($conn);
- echo "RESULT: ora_getcolumn ($mycursor, 0), ora_getcolumn ($mycursor, 1) <br>";
The above is not the way it works in PHP and you won't get the expected results. You can throw variables in between your double-quote delimited strings, but not function calls. You'll have to concatenate the function calls like this:
echo "RESULT: ".ora_getcolumn ($mycursor, 0).", ".ora_getcolumn ($mycursor, 1)."<br>";Leendert:
Thanks for the comments. The first one is an obvious typo. The second
is a pretty obvious mistake which I missed while reviewing this. Although
PHP will expand variables in a string like that, it will not handle
function calls. How could it. I just tried it, and concatenation works
just as you suggest. Thanks for the corrections, and we updated the
article.
Sean -
Php, oracle connectivity.
Hello All,
I have a webserver that has php4,apache1.3 and oci8 instant client installed, and have a seperate oracle 10g db server, the php-oracle connectivity is fine when i run php code from db server but it gives me connectivity error when it runs from web server, error " ocifreestatement(): supplied argument is not a valid OCI8-Statement resource in /apache/htdocs/.....php on line..." while even when i made telnet to my db server 1521 port from web server it shows that listener is working, any idea ? thanksHello,
My developers have changed all the API´s to OCI8 and the code is able to connect with oracle 10g with php4 but, i am still getting this warning .i.e
Warning: ocifreestatement(): supplied argument is not a valid OCI8-Statement resource in /apache/htdocs/English/tender_list.php on line 340
i am unable to figure it out, every thing is working fine but still i am getting it ?
thanks -
Where to find documentation related to php-oracle
Hi , i have been working with oracle ,and with php -mysql but never with php-oracle. I would like to ask if there are any samples application with orale-php and wich i can download.
Another question is wich editor is better to use to program codes? I have been using dreamweaver. What else can you suggest me?
Thanks in advanceYou can start with Oracle Underground Manual:
http://www.oracle.com/technology/tech/php/pdf/underground-php-oracle-manual.pdf
I also wrote a book on the topic, available from Amazon. -
While using multilanguage in php/oracle iam facing some issues
i gave input as : Portuguese: O próximo vôo à
and got output as : Portuguese: O pr?ximo v?o ?
for some special characters it is replaced by '?' mark.
iam using php5 and orcle 9 and OCI for connecting.
i gave NLS_CHARACTERSET as UTF8
and the unicode datatype as NVARCHAR2(100)
Plz some one help me out in solving ithi..
using alter session in php i changed my nsl_lang to PORTUGUESE
but still the data is stored in ? for some special characers
Array
[PARAMETER] => Array
[0] => NLS_LANGUAGE
[1] => NLS_TERRITORY
[2] => NLS_CURRENCY
[3] => NLS_ISO_CURRENCY
[4] => NLS_NUMERIC_CHARACTERS
[5] => NLS_CALENDAR
[6] => NLS_DATE_FORMAT
[7] => NLS_DATE_LANGUAGE
[8] => NLS_CHARACTERSET
[9] => NLS_SORT
[10] => NLS_TIME_FORMAT
[11] => NLS_TIMESTAMP_FORMAT
[12] => NLS_TIME_TZ_FORMAT
[13] => NLS_TIMESTAMP_TZ_FORMAT
[14] => NLS_DUAL_CURRENCY
[15] => NLS_NCHAR_CHARACTERSET
[16] => NLS_COMP
[17] => NLS_LENGTH_SEMANTICS
[18] => NLS_NCHAR_CONV_EXCP
[VALUE] => Array
[0] => PORTUGUESE
[1] => AMERICA
[2] => $
[3] => AMERICA
[4] => .,
[5] => GREGORIAN
[6] => DD-MON-RR
[7] => PORTUGUESE
[8] => UTF8
[9] => WEST_EUROPEAN
[10] => HH.MI.SSXFF AM
[11] => DD-MON-RR HH.MI.SSXFF AM
[12] => HH.MI.SSXFF AM TZR
[13] => DD-MON-RR HH.MI.SSXFF AM TZR
[14] => $
[15] => AL16UTF16
[16] => BINARY
[17] => BYTE
[18] => FALSE
Input i gave : próximo vôo à
out put : pr??ximo v??o ?? -
PHP Oracle editor/administration
Jeg har installeret Oracle XE og PHP og det går helt fint, men jeg kunne godt tænke mig en PHP-Oracle editor/administrator. Jeg har før brugt PHPMyadmin mellem PHP og Mysql og mener at der findes noget tilsvarende til Oracle, men kan ikke umiddelbart finde det. Er der nogen der kan hjælpe.
HBCHi, pbarut I modified the settings of browsers and added the html code below:
<?php
header("Expires: Thu, 17 May 2001 10:17:17 GMT");
header ("Last-Modified: Thu, 17 May 2001 10:17:18 GMT");
header ("Cache-Control: no-cache, must-revalidate");
header ("Pragma: no-cache");
?>
But the problem continues.
When I update the site (CTRL + F5) results viewing, but do not appear when the redirect or click any link.
Tanks -
Hi All,
Can any one help me to create PHP/ORACLE Pagination..
Thanks
SamHi pals
Here is a good easy sample of pagination using Oracle in PHP, Please notice that I have a layer, running different queries which I need, and in some lines below I've used them but the names of the function and variable which I've called are obviously seen that how they perform.
Further, Please note that you would be expected to call your own oracle database through PHP oracle functions, and as you can see, I have a table storing page sessions and the function "oracle->select" runs the query "SELECT * FROM SESSION_ID" and returns its result and the variable "numberrows" has the number of rows which the implemented query has returned.
<html>
<head>
<title>PAGING</title>
</head>
<body>
<?
session_start();
$session_check = $orcl->oracle_select("SESSION_ID", "*");
$Per_Page = 10; // Per Page
$Num_Rows = $orcl->numberrows;
if( !isset( $_GET["Page"] ) )
$Page=1;
else
$Page = $_GET["Page"];
$Prev_Page = $Page-1;
$Next_Page = $Page+1;
$Page_Start = ( ( $Per_Page*$Page ) - $Per_Page );
if( $Num_Rows <= $Per_Page )
$Num_Pages =1;
else if( ( $Num_Rows % $Per_Page ) == 0 )
$Num_Pages = ( $Num_Rows / $Per_Page );
else
$Num_Pages = ( $Num_Rows / $Per_Page ) + 1;
$Num_Pages = (int)$Num_Pages;
$Page_End = $Per_Page * $Page;
if ( $Page_End > $Num_Rows )
$Page_End = $Num_Rows;
?>
<table width="800" border="1" cellpadding="0" cellspacing="0" style="font-size: 12px; font: Tahoma">
<tr>
<th width="400" align="center">CUSTOMER</th>
<th width="400" align="center">Name</th>
</tr>
<?
for($i=$Page_Start; $i<$Page_End; $i++)
?>
<tr>
<td width="400" align="center"><div align="center"><?=$session_check["ID"][$i]; ?></div></td>
<td width="400" align="center"><?=$session_check["USER_ID"][$i];?></td>
</tr>
<?
?>
</table>
<table width="800" border="0" cellpadding="0" cellspacing="0" style="font-size: 12px; font: Tahoma">
<tr>
<td align="center"> </td>
</tr>
<tr>
<td align="center">Total <?= $Num_Rows;?> Record : <?=$Num_Pages;?> Page :</td>
</tr>
<tr>
<td align="center">
<?
if($Prev_Page)
echo " <a href='$_SERVER[SCRIPT_NAME]?Page=$Prev_Page'><< Back</a> ";
for($i=1; $i<=$Num_Pages; $i++){
if($i != $Page)
echo "[ <a href='$_SERVER[SCRIPT_NAME]?Page=$i'>$i</a> ]";
else
echo "<b> $i </b>";
if($Page!=$Num_Pages)
echo " <a href ='$_SERVER[SCRIPT_NAME]?Page=$Next_Page'>Next>></a> ";
?>
</td>
</tr>
<tr>
<td align="center"> </td>
</tr>
</table>
</body>
</html> -
est-ce que vous avez un manuel php oracle en français
As this is english forum can you post your question in english please?
French PHP documentation is here: http://www.php.net/manual/fr/ . Oracle functions and examples are included there. -
Upgrading oracle workspace manager
hi,
I have upgraded recently 9.2.0.1 database to 9.2.0.6 db by applying patchset.
all the components have been brought up to 9.2.0.6 except
Oracle Workspace Manager
9.2.0.1.0
(select comp_name,version from dba_registry) this query returns all the components status valid with 9.2.0.6.0 version).
can Anyone tell me what I have to do to bring up oracle workspace manager to 9.2.0.6.0Hi,
A full database import/export containing Workspace Manager version enabled tables and/or workspaces is only supported when both the source and target are the same version. So, obviously, you would not be able to export from 9.0.1.3 and import directly into a later version. Typically, this could only be accomplished via upgrade without using import/export as you described.
However, you should be able to install the 9.0.1.3 Workspace manager code on the target database, do the import, and then after that completes to upgrade Workspace Manager to the original version.
Regards,
Ben -
Can you configure WebLogic connection pools to work with Oracle Workspace Manager?
Randall wrote:
Can you configure WebLogic connection pools to work with Oracle Workspace Manager?We support all standard J2EE APIs, but OWM isn't a standard. How does it relate to JDBC
connections?
Joe -
Free web hosting for PHP Oracle
Hi,
I am a senior student and I have my final year project.For that I am suing PHP and Oracle.Is there anyone who could advise me on a good web hosting site for student aplications available if not for free,at least for a low price for my Oracle database and website.
Note that the website I am building will not be used for comercial purposes, only for education.I will deeply apreciate any help I can get.
Thank youHiya,
Being the sales Director for PHP Oracle Hosting I am proud to say that we do provide high quality of service at the cheapest prices. Our IT guys are professional consultants and are available almost 24hours
www.phporaclehosting.com
Maybe you are looking for
-
ORA-27123 unable to attach shared memory segment
Running oracle 8.1.5.0.0 on Redhat 6.0 with kernel 2.2.12, I keep getting the error ORA-27123 unable to attach shared memory segment when trying to startup and instance with an SGA > 150 MB or so. I have modified the shmmax and shmall kernel paramete
-
Oracle 8.1.7 on Linux 7
Hi, Is it possible to install Oracle 8.1.7 on Linux 7.0? I know it wasnt possible a while ago with 8.1.6. Thanks in advance for your help!!! Mike
-
Photoshop Elements 6 online gallery blank pages
I've created a few online galleries to put on my Windows Home server website. They look good on the local network, but when accessed on my website, the browser pages are usually blank. Sometimes I can get something to show up, but usually not. I disc
-
Mouse pad virtual wheel not working in bookmarks menu
Hi, My laptops mouse pad wheel does not work in the bookmarks menu. It works fine in any other application or on the main view in firefox. I'm not very organized and have hundreds of bookmarks, it's frustrating to have to wait for the up/down buttons
-
When I downloaded iTunes on my new computer I lost several songs I had on my old computer and iTunes will not allow me to play the songs I do have. What can I do?