New error with php code
why below example doesn't work?
<?php
$table =" select h.order_number,b.inventory_item_id,b.description item_desc
from oe_order_headers_all h,
oe_order_lines_all l,
mtl_system_items_b b
where h.header_id = l.header_id
and l.inventory_item_id = b.inventory_item_id
and b.organization_id = 85
AND h.org_id = 85
and l.org_id = 85
and to_char(h.ordered_date,'YYYYMMDD') = '20060508'";
$conn = ocilogon("apps", "apps", "prod");
$sql="select distinct(item_desc) item_desc from $table";
$stmt = oci_parse ($conn, $sql);
oci_execute ($stmt);
$items=array();
$result= array();
$i=0;
while ($result = oci_fetch_array($stmt,OCI_BOTH)) {
$items[$i]=$result['ITEM_DESC'];
echo $result['ITEM_DESC'];
$i=$i+1;
//build part of select stateme
for ($i=0; $i<sizeof($items); $i++) {
$select_items .= "SUM($items[$i]) $items[$i],";
for ($i=0; $i<sizeof($items); $i++) {
$decode_items .= "DECODE(item_desc,'$items[$i]', quantity, null) $items[$i],";
//final SQL statement
$sql="SELECT $select_items order_number
FROM (SELECT $decode_items order_number FROM $table )
group by order_number";
$stmt=oci_parse ($conn, $sql);
oci_execute($stmt);
echo "<table border=1>";
echo "<tr>";
echo "<td>Order Number</td>";
for ($i=0; $i<sizeof($items); $i++) {
echo "<td>".$items[$i]."</td>";
echo "</tr>";
while ($row = oci_fetch_array ($stmt, OCI_BOTH)) {
echo "<tr>";
echo "<td>".$row['ORDER_NUMBER']."</td>";
for ($i=0; $i<sizeof($items); $i++) {
echo "<td>".$row[$i]."</td>";
echo "</tr>";
echo "</table>";
?>
Hey,
I'm French so i'll try to explain in my best english.
I had the same problem. And i solved it.
In fact i change the dll because the one which php install give us is not compatible.
I choose the one which is provides with wampserver 2.0i.
php_oci8_11g.dll
with instantclient_11_1g
Next i'll create environnement variables
NLS_LANG=FRENCH_FRANCE.WE8ISO8859P15
TNS_ADMIN=d:\oracle
and in path variable add the way to the instantclient11_1
D:\oracle\instantclient_11_1
Then i restart the server and lucky all services start and run perfectly.
Similar Messages
-
Problem with php code. Please help!
Hello!
I'm using the following syntax to bring content into my
websites' layout template:
Code:
<?php //check in the root folder first
if(file_exists('./' . $pagename . '.php'))
include './' . $pagename . '.php';
//if it wasn't found in the root folder then check in the
news folder
elseif(file_exisits('./news/' . $filename . '.php'))
include './news/' . $pagename . '.php';
// if it couldn't be found display message
else
echo $pagename . '.php could not be found in either the root
folder or the news folder!';
} ?>
What it's essentially saying is, if you can't find the .php
file in the _root folder, look for it in the /news/ folder.
It works perfectly if loading something from the _root folder
but I get an error if I need to bring something from the /news/
folder.
Can anyone see any potential problems with my code?
Thank you very much and I hope to hear from you.
Take care,
MarkI've never seen the code written like that before, but I'm
assuming it's
legal?
Perhaps try:
<?php
$newsroot = $_SERVER['DOCUMENT_ROOT']."/news";
if (!file_exists("$pagename.php")) {
elseif (!file_exists("$newsroot/$pagename.php")) {
else
Or the other thing you can try is replacing the elseif
statement with:
elseif (!file_exists("news/$pagename.php"))
If not - I'm sure Gary will be on here soon...
Shane H
[email protected]
http://www.avenuedesigners.com
=============================================
Proud GAWDS Member
http://www.gawds.org/showmember.php?memberid=1495
Delivering accessible websites to all ...
=============================================
"Spindrift" <[email protected]> wrote in
message
news:e5mled$272$[email protected]..
> Hello!
>
> I'm using the following syntax to bring content into my
websites' layout
> template:
>
> Code:
>
> <?php //check in the root folder first
> if(file_exists('./' . $pagename . '.php'))
> {
> include './' . $pagename . '.php';
> }
> //if it wasn't found in the root folder then check in
the news folder
> elseif(file_exisits('./news/' . $filename . '.php'))
> {
> include './news/' . $pagename . '.php';
> }
> // if it couldn't be found display message
> else
> {
> echo $pagename . '.php could not be found in either the
root folder or
> the
> news folder!';
> } ?>
>
> What it's essentially saying is, if you can't find the
.php file in the
> _root
> folder, look for it in the /news/ folder.
>
> It works perfectly if loading something from the _root
folder but I get an
> error if I need to bring something from the /news/
folder.
>
> Can anyone see any potential problems with my code?
>
> Thank you very much and I hope to hear from you.
>
> Take care,
>
> Mark
> -
HELP! Run-time Error with this code.
I'm having problem with the code below. But if I were to remove the writer class and instances of it (writeman), then there are no problems. Can some1 pls tell me why the writer class is giving problems. Btw, no compilation errors, only errors at run-time..........
import java.applet.*;
import java.awt.*;
import java.awt.event.MouseListener;
import java.awt.event.*;
public class HelloWorld extends Applet
public static String MyString = new String("Hello");
Graphics f;
public void init()
Changer Changer1 = new Changer();
writer writeman = new writer();
setBackground(Color.red);
setForeground(Color.green);
addMouseListener(Changer1);
writeman.paintit(f);
public void paint(Graphics g)
g.drawString(MyString,10 ,10);
public class Changer implements MouseListener
public void mouseEntered(MouseEvent e)
setBackground(Color.blue);
MyString = "HI";
paint(f);
repaint();
public void mouseExited(MouseEvent e)
setBackground(Color.red);
repaint();
public void mousePressed(MouseEvent e){};
public void mouseReleased(MouseEvent e){};
public void mouseClicked(MouseEvent e){};
public class writer
public void paintit(Graphics brush)
brush.drawString("can u see me", 20, 20);I assume the exception you are getting is a NullPointerException...
When you applet is loaded, it is initialised with a call to init... the following will then occur...
HelloWorld.init()
writeman.paintit(f)
// f has not been initialised, so is null
brush.drawString("can u see me", 20, 20)
// brush == f == null, accessing a null object causes a NullPointerException!
The simplest way to rectify this is to not maintain your own reference to the Graphics object. Move the writer.paintit(f) method to the HelloWorld.paint(g) method, and pass in the given Graphics object. Also, change the paint(f) call in Changer to repaint(), which will cause the paint method to be called with a valid Graphics object - which will then be passed correctly to writer.
Hope this helps,
-Troy -
Is there a error with this code
import java.applet.Applet;
import java.awt.*;
import java.awt.event.*;
public class ClickMe extends Applet implements MouseListener {
private Spot spot = null;
private static final int RADIUS = 7;
public void init() {
addMouseListener(this);
public void paint(Graphics g) {
//draw a black border and a white background
g.setColor(Color.white);
g.fillRect(0, 0, getSize().width - 1, getSize().height - 1);
g.setColor(Color.black);
g.drawRect(0, 0, getSize().width - 1, getSize().height - 1);
//draw the spot
g.setColor(Color.red);
if (spot != null) {
g.fillOval(spot.x - RADIUS, spot.y - RADIUS, RADIUS * 2, RADIUS * 2);
public void mousePressed(MouseEvent event) {
if (spot == null) {
spot = new Spot(RADIUS);
spot.x = event.getX();
spot.y = event.getY();
repaint();
public void mouseClicked(MouseEvent event) {}
public void mouseReleased(MouseEvent event) {}
public void mouseEntered(MouseEvent event) {}
public void mouseExited(MouseEvent event) {}
When I compile the the code I get a "cannot resolve symbol"
private Spot spot = null;
spot = new Spot(RADIUS);
I don't know if these are errors in the code'cannot resolve symbol' errors usually mean a problem with the declarations and initialisations at the start of your class. This is specifically to do with your line private Spot spot = null;
i haven`t much time to look at your code, but i would suggest getting rid of the null initialisation here, and do you ever actually change this value? after a quick look it seems that you only query it to see if the variable spot is null. if you never affect this value, then it will always be null and only one if statement will ever be executed.
but as i said i haven`t any time, so could be off here
boutye - boss is coming bak argh! -
HTTP Error with Status code 403 when using ABAP Server Proxies
Hi All,
I have been working on ABAP Client and Server proxies in my project. The weblogs by Ravikumar, Prateek Shah, Siva Maranani & VijayaKumari were very helpful and thank them all for just helpful and guiding postings.
Interfaces using Client proxies are working fine and have been tested successfully. But I'm facing bit problems with Server Proxies. The scenario is of File to SAP system via XI. Data is coming correct up to Technical routing in pipeline but at call adapter(for Server Proxy to SAP)in XI pipeline I receive Error:
HTTP response contains status code 403 with the description Business Server Page (BSP) Error Error when sending by HTTP (error code: 403, error text: Business Server Page (BSP) Error)
Previously I was receiving authentication and authorization related error of status code 401 and then in communication channel I replaced user profile with a user id having role SAP_XI_APPL_SERV_USER. The basis peron has created new user id with role SAP_XI_APPL_SERV_USER only and that I'm using. I've tried creating a HTTP destination with the created user id and in test connection too receive same error message.
Please help me out with your inputs and understanding on the topic.
Thanks and Best Regards
Prashant RajaniHi Prashant,
Please take a look at these threads..They deal with the same problem, and they have been resolved here.
BSP Authorization error
Service cannot be reached . error code 403 the reason forbiddn
403 Error when accessing the server
Hope your issue gets resolved.
cheers,
Prashanth
P.S Please mark helpful answers -
A difficult problem with php code and sql code
it's good place to visit(Paged Result Sets with PHP and Oracle)
http://www.oracle.com/technology/pub/articles/oracle_php_cookbook/fuecks_paged.html
maybe below part php code could not be used in above address's php code.
if((isset($l_company) and $l_company != $rows['COMPANY']) or empty($stmt) and empty($total_pages) ) {
echo "<tr bgcolor='#CCFFCC'>";
echo "<td colspan= 3 align='center'>".$l_company."</td>";
echo "<td >".$totalcomany." </td>";
$totalcomany = 0;
echo "<td > </td>";
echo "</tr>";
$l_company = $rows['COMPANY'];
because the same company in one page could calculate sum while if
the same company in two pages could not do that.
and what do you think of ?
thanks !Hi,
this is because your sql-statement selects only the rows, you need to build this one page.
Neither php nor the given result from your query knows about data wich will be part of the result of another page.
Greetings from Hamburg
Thorsten Körner -
Error with no code on warehouse builder
Hi,
I need some help on this porblem, please.
Im trying to put in a maping the cube I have just created, and when I send it from available objects to the mapping an error mesage with no code or text apears. It just shows the error icon and the buttons acept and details.
When I click on details this is the text:
at oracle.wh.repos.impl.mapping.CMPMapOperatorOwnerImpl.createOperator(CMPMapOperatorOwnerImpl.java:87)
at oracle.wh.repos.impl.mapping.CMPBaseMap.createOperator(CMPBaseMap.java:387)
at oracle.wh.ui.tsmapping.MappingTransferHandler.handleCreateOperator(MappingTransferHandler.java:132)
at oracle.wh.ui.tsmapping.MappingTransferHandler.importData(MappingTransferHandler.java:64)
at oracle.wh.ui.editor.dnd.EditorTransferHandler$EditorDropHandler.drop(EditorTransferHandler.java:232)
at javax.swing.TransferHandler$SwingDropTarget.drop(TransferHandler.java:598)
at sun.awt.dnd.SunDropTargetContextPeer.processDropMessage(SunDropTargetContextPeer.java:542)
at sun.awt.dnd.SunDropTargetContextPeer.access$800(SunDropTargetContextPeer.java:52)
at sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchDropEvent(SunDropTargetContextPeer.java:805)
at sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchEvent(SunDropTargetContextPeer.java:743)
at sun.awt.dnd.SunDropTargetEvent.dispatch(SunDropTargetEvent.java:29)
at java.awt.Component.dispatchEventImpl(Component.java:3494)
at java.awt.Container.dispatchEventImpl(Container.java:1627)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
at java.awt.LightweightDispatcher.processDropTargetEvent(Container.java:3269)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3123)
at java.awt.Container.dispatchEventImpl(Container.java:1613)
at java.awt.Window.dispatchEventImpl(Window.java:1606)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
Caused by: java.lang.NullPointerException
at oracle.wh.service.impl.mapping.component.dimension.DimensionInboundAdapter.constructLevelGroup(DimensionInboundAdapter.java:775)
at oracle.wh.service.impl.mapping.component.dimension.CubeInboundAdapter.convertOperator(CubeInboundAdapter.java:562)
at oracle.wh.repos.sdk.mapping.mxs.OperatorInboundAdapter.convert(OperatorInboundAdapter.java:28)
at oracle.wh.repos.pdl.mxs.ReconcileService.createTarget(ReconcileService.java:572)
at oracle.wh.repos.pdl.mxs.ReconcileService.createTarget(ReconcileService.java:544)
at oracle.wh.repos.pdl.mxs.ReconcileService.reconcile(ReconcileService.java:304)
at oracle.wh.repos.impl.mapping.CMPMapOperatorOwnerImpl.createOperator(CMPMapOperatorOwnerImpl.java:67)
... 25 more
I dont know how to face the problem because I have no feedback. Can someone help me pleaseWhen I validate all it gets a success.
Im running version 10. standar edition one
Thanks.
Edited by: user10764934 on 02-02-2009 04:42 AM -
for example:
create table testtable (
sales_area varchar2(30),
sales_comp varchar2(40),
sales_market varchar2(30),
order_number number(20),
order_date varchar2(20),
item_id number(15),
quantity number(20),
item_desc varchar2(50)
insert into testtable values ('westarea','acompany','amarket','52001',1001,1,10,'apple');
insert into testtable values ('westarea','acompany','amarket','52005',1002,2,20,'banana');
insert into testtable values ('eastarea','bcompany','bmarket','52002',1003,2,50,'banana');
insert into testtable values ('eastarea','bcompany','bmarket','52004',1006,1,30,'apple');
insert into testtable values ('eastarea','bcompany','bmarket','52003',1007,1,30,'apple');
insert into testtable values ('westarea','ccompany','cmarket','52006',1003,1,30,'orange');
insert into testtable values ('westarea','ccompany','dmarket','52007',1004,3,60,'orange');
commit;
select *
from testtable
it outputs below:
westarea acompany amarket 52001 1001 1 10 apple
westarea acompany amarket 52005 1002 2 20 banana
eastarea bcompany bmarket 52002 1003 2 50 banana
eastarea bcompany bmarket 52004 1006 1 30 apple
eastarea bcompany bmarket 52003 1007 1 30 apple
westarea ccompany cmarket 52006 1003 1 30 orange
westarea ccompany dmarket 52007 1004 3 60 orange
use php code outputs like below php code :
apple banana orange .......
westarea acompany amarket 52001 1001 10
westarea acompany amarket 52005 1002 20 ........
acompany 10 20 .........
westarea ccompany cmarket 52006 1003 30 .........
westarea ccompany dmarket 52007 1004 60 .........
ccompany 90 .........
westarea 10 20 90 .........
eastarea bcompany bmarket 52002 1003 50 .........
eastarea bcompany bmarket 52004 1006 30 .........
eastarea bcompany bmarket 52003 1007 30 .........
bcompany 60 50 .........
eastarea
total 70 70 90 ......
make below php code output a new table:
<?php
$v_item_count = count(array(item));
echo"<table border = 1>";
echo "<tr>";
echo "<td rowspan="2">sales area</td>";
echo "<td rowspan="2">sales comp</td>";
echo "<td rowspan="2">sales market</td>";
echo "<td rowspan="2">customer_number</td>";
echo "<td rowspan="2">order_number</td>";
echo "<td colspan="'||to_char($v_item_count)||'">categories and quantities</td>";
while ($row = oci_fetch_array ($stmt, OCI_BOTH)) {
echo "<tr>";
echo "<td>".$row['ORDER_NUMBER']."</td>";
?>
who can help me?for example:
while ($row = oci_fetch_array ($stmt, OCI_BOTH)) {
echo "<tr>";
echo "<td>".$row['ORDER_NUMBER']."</td>";
echo "<td>".$row['ORDERED_DATE']."</td>";
for ($i=0; $i<sizeof($items); $i++) {
echo "<td>".$row[$i]." </td>";
echo "</tr>";
echo "</table>";
?>
above php code should output plentites of lines while it output few lines.
i don't know there has many lines outputed?
who can help me? -
Printing error with t-code j1inmis: Can not find PDL type for output device
Hi,
When using tr.code j1inmis,when we seeing the print preview iam getting below error.
The error with my system show the details as follow :
Cannot find PDL type for output device LP01.
My system is only abap stack.Guide me for the same how to resolve this.
ThankuHi,
When i submit the test through URL its working fine(http://192.17.0.12/AdobeDocumentServices/Config).In SM59 Both sides are working.
When I check The Test : FP_TEST_00 iam getting below error
ADS: com.adobe.ProcessingException: com.adobe.Processin(200101)
But
When I check The Test : FP_PDF_TEST_00 its working fine.
And When I check this test : FP_CHECK_DESTINATION_SERVICE without destination its working fine.
When i check with destination iam getting error : SYSTEM ERROR:com.adobe.ProcessingException:Problem accessing data from Destination:dest:FP_ICF_DATA_SMN//sap/bc/fp/form/layout/FP_FORM_SECURITY_TEST.XDP?fp-language=DE.
Guide me for the same two tests are working fine other two are getting error,guide me for the same to solve this,appreciate ur help.
Thanku -
hello all!
i am trying to write simple code but have some errors.
DECLARE
id NUMBER;
BEGIN
id:=SELECT id from technician where salary=(select MIN(salary) from technician);
DBMS_OUTPUT.put_line(id);
END;Your simple program becomes complex! As pointed out, it will blow up if your query returns more than one row. If you're just doodling with your code, you can add "and rownum=1" to your where clause. That will prevent the "too many rows returned" exception. Of course, it is basically randomly picking one of several values in the DB, so it's not good for production code.
For real code, there are at least two common options:
(1) Use your select to create a cursor, which lets you loop through each matching row. Good when multiple rows are normal and you really want to use them all.
(2) Create an integer variable, such as row_count. Select count(*) into row_count ... from technician t where salary....
If row_count = 1 then use the assignment you were going to do. Otherwise, stop processing and log an error (too many or too few rows returned...).
This is good when you expect EXACTLY one technician to have that salary, and anything else is an error.
Andy -
Using DW CS4
Have a page with a select that is populated from a recordset that lists products and i am trying to have the select show certain products as being SOLD OUT!
Here is the code i have
<?php
/*START_PHP_SIRFCIT*/ if
($row_rs_options['OptionPriceincrement']!="0"){ ?>
<option value="<?php echo
$row_rs_options['ProductOptionID']?>"><?php echo
$row_rs_options['OptionName']?> $<?php echo
$row_rs_options['OptionPriceincrement']; ?></option><?php } else
echo'<option class="style1" value=""><?php echo
$row_rs_options[\'OptionName\']?> ITEM SOLD OUT!</option>'
/*END_PHP_SIRFCIT*/ ?>
If my else statement is triggered, i want the select option to show the OptionName where the OptionPriceincrement is == to 0 and also the text ITEM SOLD OUT!
With the code as i have it, only the ITEM SOLD OUT! shows in a browser.
You can see this here http://www.comfycampers.info/products.php
Go to Tour Bon Ton Roulet and view the select
thanks for your help,
-Jim BalthropI figured out my mistake on the code.
<?php /*START_PHP_SIRFCIT*/ if ($row_rs_options['OptionPriceincrement']!="0"){ ?>
<option value="<?php echo $row_rs_options['ProductOptionID']?>"><?php echo $row_rs_options['OptionName']?> $<?php echo $row_rs_options['OptionPriceincrement']; ?></option><?php }
else { ?><option class="style1" value=""><?php echo $row_rs_options['OptionName']; ?> SOLD OUT!</option>
<?php } /*END_PHP_SIRFCIT*/ ?>
You can see this here http://www.comfycampers.info/products.php
Go to Tour Bon Ton Roulet and view the select
thanks for your help,
-Jim Balthrop -
Hi everybody,
I'm a Thai web developer, this is my first time for using Orcle.
Now I run Oracle 10g on WinXP pro and I want to develop PHP web application with Oracle.
I just set up Oracle and config my iis + php to support Oracle yesterday, Today I try to connect to Orcle it's still error with error ORA-12541: no listener
I search for solve this problem, I found "starting listener by command-line" via http://www.orafaq.com/faq/Middleware/SQLNet/faq372.htm with lsnrctl start [listener name]
I can not start my listener with this stuff It's still error
Message 1070 not found; No message file for product=NETWORK, facility=TNSTNS-125
57: Message 12557 not found; No message file for product=NETWORK, facility=TNS
TNS-12560: Message 12560 not found; No message file for product=NETWORK, facili
ty=TNS
TNS-00527: Message 527 not found; No message file for product=NETWORK, facilit
y=TNS
I run all stuff in my local computer on WinXP (IIS + PHP + Oracle)
How I solve this error?
Sorry about my english
Best regards,
SherokuHi,
Typically when you get "Message xxxx not found: ..." error messages when trying to start the listener, it means that your ORACLE_HOME is not properly set.
The walkthrough is to set the ORACLE_HOME at envionment level just before using the command, and maybe also as a system environment parameter.C:\>ECHO %ORACLE_HOME%
%ORACLE_HOME%
C:\>SET ORACLE_HOME=C:\NOWHERE!
C:\>ECHO %ORACLE_HOME%
C:\NOWHERE!
C:\>lsnrctl start
LSNRCTL for 32-bit Windows: Version 10.1.0.4.0 - Production on 15-SEP-2005 12:23:45
Copyright (c) 1991, 2004, Oracle. All rights reserved.
Message 1070 not found; No message file for product=NETWORK, facility=TNSTNS-12557: Message 12557 not found; No message file for product=NETWORK, facility=TNS
TNS-12560: Message 12560 not found; No message file for product=NETWORK, facility=TNS
TNS-00527: Message 527 not found; No message file for product=NETWORK, facility=TNS
C:\>SET ORACLE_HOME=C:\oracle\ora10g
C:\>lsnrctl start
LSNRCTL for 32-bit Windows: Version 10.1.0.4.0 - Production on 15-SEPT.-2005 12:24:02
Copyright (c) 1991, 2004, Oracle. All rights reserved.
Lancement de tnslsnr: Veuillez patienter...
TNSLSNR for 32-bit Windows: Version 10.1.0.4.0 - Production
Le fichier de ...
La commande a réussi"La commande a réussi" = "Command successful"
And don't worry about bad English, we don't speak well either.
Regards,
Yoann. -
Printing error with t-code FBCJ: Can not find PDL for output device prtloc
Hello , folks ,
The error with my system show the details as follow :
Cannot find PDL type for output device prtlocal
Message no. FPRUNX113
Diagnosis
No PDL type has been found for the specified output device.
System Response
Error message
Procedure
Contact your system administrator.
Procedure for System Administration
For more information, see SAP Note 685571.
Our Basis can not solve the problems .
anybody know what's wrong with it ?
Thanks a lot .other problems could be:
C drive is full
ADS folder under C:\Temp are write protected -
Mysql.sock error with php
Hi,
I'm trying to get MySQL working on my Mac running OS X 10.5.1
The server runs and I have imported one of my databases into
it. However when I run Dreamweaver and try and add the new database
I get this error in Dreamweaver;
Can't connect to local MySQL server through socket
'/var/mysql/mysql.sock' (38)
Speaking with MySQL they have said that file is found in
/tmp/
I have copied it and added it where DW wants it but still no
joy.there seems to be a simpler perm fix farther down the page-
It can be much simpler.
sudo cp /etc/php.ini.default /etc/php.ini
sudo chmod 777 /etc/php.ini
Open the file with a nice Editor, like PathFinder or BBEdit.
Find the line for the mysql.default.host
; Default socket name for local MySQL connects. If
empty, uses the built-in
; MySQL defaults.
mysql.default_socket = /tmp/mysql.sock
and enter: /tmp/mysql.sock
You will then have:
; Default socket name for local MySQL connects. If
empty, uses the built-in
; MySQL defaults.
mysql.default_socket = /tmp/mysql.sock
save it, go back to terminal and enter:
sudo chmod 644 /etc/php.ini
You then can restart Apache and SQL, or do a normal restart.
It should work
afterwards.
Alan
Adobe Community Expert, dreamweaver
http://www.adobe.com/communities/experts/ -
Load Error with return code 7000 when call sqlldr in interface.
Hi All,
I have created a interface to load data from 'File' to 'Oracle' in ODI 11g.
Below are the running order of this interface.
1 - Loading - SrcSet0 - Drop work view
2 - Loading - SrcSet0 - Drop Temp Table
3 - Loading - SrcSet0 - Create Temp table
4 - Loading - SrcSet0 - Create Work View
5 - Loading - SrcSet0 - Generate CTL file
6 - Loading - SrcSet0 - Call sqlldr
We are getting the following error while running the step 6.
org.apache.bsf.BSFException: exception from Jython:
Traceback (most recent call last):
File "<string>", line 22, in <module>
Load Error: See C:\home\oracle\joc\odi/AIM.log for details
at org.apache.bsf.engines.jython.JythonEngine.exec(JythonEngine.java:146)
at com.sunopsis.dwg.codeinterpretor.SnpScriptingInterpretor.execInBSFEngine(SnpScriptingInterpretor.java:322)
at com.sunopsis.dwg.codeinterpretor.SnpScriptingInterpretor.exec(SnpScriptingInterpretor.java:170)
And it return code 7000 indicated in 'Execution Statistics'.
If anyone has encountered a similar issue and able to solve it, please share your thoughts with me.
Thanks in advance for your help.
DicksamThis forum is dedicated to supporting the use of Maven with FMW and the new Oracle Maven Repository. Given that ODI does not currently provide Maven support, you are unlikely to get a response in this forum. You might want to try posting in a different forum dedicated to Data Integration, such as the Master Data Management forum.
Maybe you are looking for
-
'''bold text'''I have found out that I need to disable my Firewall, and stop my pop-up blocker, before downloading the new Adobe Reader. Now, I have uninstalled it and re-installed it several times, because on the Checl Plu-In Page, it still says it
-
Integration Directory(Configuration) Problem
Hi All, I am facing one Probelm. I am working one the client through Citrix. I am not able to open Integration Directory(Configuration Problem) . In onsite it's working fine. Reming all other applications(Integartion Repository and SLD and Runtime wo
-
If I use my laptop to print to the printer and assign pages for example 12-15 it prints what ever example 8-11 or if I try printing 1-15 it only prints 1-11. The printer is hook up to my desktop with Windows Xp3 my laptop is using Windows 7 Home Prem
-
Unable to access the AdfLibraryJar bindings
Hi All,a I am using Jdeveloper 11.1.14.0, I have ADF Application and if i run this application it is running fine with out giving any errors. For this application i have created AdfLibraryJar and placed in the local file system. I have Webcenter appl
-
About fi-sl,co-pa extractions
is it possible to load master data through fi-sl and co-pa extractions?