Error Ora-12500 when using dblink
Hi all,
I have a database that I can connect directly with no problem, but there's error when I try to connect to that db from another db by using dblink
(Select * from someTab@link_name)
The error is Ora-12500
(Sure that tnsname.ora file is OK, I meant SID that using in dblink)
What can I do to deal with this prob?
Thank you!
Mr_what wrote:
Thank you guys! Of course I've known what Ora-12500 means, google is always the first thing I do when have to deal with any prob.Then you should have run across the cause of the problem..?
The client (in this case, the PL/SQL code using the db-link) uses a TNS alias to connect to an Oracle Listener. Part of the TNS alias is specifying the database the client wants to connect to (e.g. using SID or SERVICE_NAME).
The Listener confirms that it services this SID or service (it needs to be registered with the Listener). It then "+hands off+" the connection to that database. It can do this either as a dedicated or shared server process.
In your case, your TNS connection does not request a shared server connection. So the Listener needs to provide a dedicated server to service your client connection. It does so by executing +$ORACLE_HOME/bin/oracle+ - using the settings for that registered database (which includes the +$ORACLE_HOME+ dir). It passes command line parameters to this process (typically +(LOCAL=NO)+ ), and other data via the call (such as the socket handle this oracle executable needs to use to communicate with your client session).
This is the step that fails. The Listener fails to create this dedicated process. It uses a specific kernel call (differs from o/s to o/s) to create this dedicated server (a process on Linux/Unix, or thread on Windows). This call is usually what fails and results in the error you see on the client side.
There can be a number of reasons why this failed. The usual two suspects are:
- the kernel not allowing the Oracle o/s user to create more processes as it has reached it resource quota
- invalid +$ORACLE_HOME+ and the call fails to load the bin/oracle executable process
I would first eliminate these two as the cause of the problem. If it is not caused by these, then I would enable listener tracing and troubleshoot a connection that results in this error. There are various levels of diagnostics that can be enabled for tracing. At the lowest level one can trace the actual calls made by the listener, including the parameters values passed.
Similar Messages
-
Error ORA-06502 When using function REPLACE in PL/SQL
Hi,
I have a PL/SQL procedure which gives error 'Error ORA-06502 When using function REPLACE in PL/SQL' when the string value is quite long (I noticed this with a string 9K in length)
variable var_a is of type CLOB
and the assignment statement where it gives the error is
var_a := REPLACE(var_a, '^', ''',''');
Can anyone please help!
ThanksEven then that shouldn't do so:
SQL> select overload, position, argument_name, data_type, in_out
2 from all_arguments
3 where package_name = 'STANDARD'
4 and object_name = 'LPAD'
5 order by 1,2
6 /
OVERLOAD POSITION ARGUMENT_NAME DATA_TYPE IN_OUT
1 0 VARCHAR2 OUT
1 1 STR1 VARCHAR2 IN
1 2 LEN BINARY_INTEGER IN
1 3 PAD VARCHAR2 IN
2 0 VARCHAR2 OUT
2 1 STR1 VARCHAR2 IN
2 2 LEN BINARY_INTEGER IN
3 0 CLOB OUT
3 1 STR1 CLOB IN
3 2 LEN NUMBER IN
3 3 PAD CLOB IN
4 0 CLOB OUT
4 1 STR1 CLOB IN
4 2 LEN NUMBER INI wonder what happened? -
Oracle error ORA-00600 when using Oracle 10g and Sun One Web Server 6.1
I have a java application that was running under Solaris 8 and Oracle 9i. I am trying to get it up and running on a new server that is configured with Solaris 9 and Oracle 10g. Whenever the application tries to connect to the database it receives the following error: ORA-00600 [ttcgcshnd-1][0]. My research indicates that this is an internal Oracle error that represents a low level unexpected condition. I have looked through my configuration for the Web Server and I have not been able to determine the cause of this problem. My DBA tells me that we have the latest patch installed for Oracle! Has anyone encountered this problem before? Any help would be greatly appreciated!
If the problem is also present in a SWING app, i.e. outside the web server, then it is porbably something external to the webserver.
I think you should ensure that the driver and database are compatible with each other. It is very likely that you need a new jdbc driver for the new database.
download from here http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/htdocs/jdbc101020.html
try the ojdbc14.jar -
Message error ORA-00936 when using JDBC adapter
Hi all,
I'm using the folow scenario:
RFC --> XI --> JDBC
RFC <-- XI <-- JDBC (response)
It's a SYNCHRONOUS interface.
RFC call without COMMIT WORK:
CALL FUNCTION 'Y_TESTE_NEI'
DESTINATION 'RFC_XI'
EXPORTING
DATE_FROM = v_data_from
DATE_TO = v_data_to
TABLES
t_return = t_dados.
I'm not using KEY in JDBC message, because for test I want to get entiry table, and I set the communication channel JDBC to KEY not mandatory.
I'm not having mapping error, in SXMB_MONI I can see the two messages of interface, but both with SYSTEM ERROR.
In JDBC adapter in Runtime Workbench apears the follow message error:
com.sap.aii.af.ra.ms.api.DeliveryException: Error processing request in sax parser: Error when executing statement for table/stored proc. 't7_productionorder' (structure 't7_productionorder'): java.sql.SQLException: ORA-00936: missing expression
And DUMP in function call in R/3: CALL_FUNCTION_REMOTE_ERROR
Could anyone help me about this problem ?
Thanks in advance.
Regis FerratoHi Regis,
I did the same scenario just now. The error you get is, you need to check whether the fields you are entering into the database have correct datatypes.
Check out your database structure with your structure in XI, and also test in Message Mapping, to make sure you are sending correct values.
In my case I was sending date like this '10-12-06', but my DB accepts only '101206'. So I removed the '-'. It was fine .
The Dumping error is not due to your ABAP, due to the DB operation.
Let me know Whether I am correct.
Raj. -
URGENT : ORA 302000 when using TEXT_IO.fopen
Hi,
I get this error ORA 302000 when using TEXT_IO package, the code I use is
new_file:=text_io.fopen('c:\text.txt','r')
i don't have the description of this ORA 302000 , pls does anyone have it?Hi,
I know it's been 2 years but it's still up to date for me.
I tried the suggested piece of code to trace the error but it did not bring anything more
EXCEPTION
When Others then
srw.Message( 2, 'EXCEPTION ' || SQLCODE || ' in common package. Can not open the file ');
IF SQLCODE = -302000 then
LOOP
EXIT WHEN TOOL_ERR.NERRORS = 0;
SRW.MESSAGE( 667, TO_CHAR(TOOL_ERR.CODE) || ': ' || TOOL_ERR.MESSAGE);
TOOL_ERR.POP;
END LOOP;
END IF;
srw.Message( 3, 'EXCEPTION ' || SQLCODE || ' in com package. Can not open the file ' || I_Desname || ' : ' || SQLERRM );
Only Message 2 and 3 are displayed in the trace file
Any other suggestion?
Manu -
Get ORA-01031: insufficient privileges error, but only when using dbstart.
I am getting ORA-01031: insufficient privileges error, but only when using dbstart. the listener starts but not the database. How come I can start it from SQL prompt but not from dbstart scripts as the oracle user?
[oracle@mallard bin]$ ./dbstart
Processing Database instance "gf44": log file /prod/oracle/10/startup.log
[oracle@mallard bin]$
Log file:
Wed Aug 20 10:15:02 CDT 2008
SQL*Plus: Release 10.2.0.1.0 - Production on Wed Aug 20 10:15:02 2008
Copyright (c) 1982, 2005, Oracle. All rights reserved.
SQL> ERROR:
ORA-01031: insufficient privileges
SQL> ORA-01031: insufficient privileges
SQL>
/prod/oracle/10/bin/dbstart: Database instance "gf44" warm started.
>
oratab file:
gf44:/prod/oracle/10:Y
dbstart file section:
# See if it is a V6 or V7 database
VERSION=undef
if [ -f $ORACLE_HOME/bin/sqldba ] ; then
SQLDBA=svrmgrl
VERSION=`$ORACLE_HOME/bin/sqldba command=exit | awk '
/SQL\*DBA: (Release|Version)/ {split($3, V, ".") ;
print V[1]}'`
case $VERSION in
"6") ;;
*) VERSION="internal" ;;
esac
else
if [ -f $ORACLE_HOME/bin/svrmgrl ] ; then
SQLDBA=svrmgrl
VERSION="internal"
else
SQLDBA="sqlplus /nolog"
fi
fi
Permissions of file:
[oracle@mallard bin]$ ls -la dbstart
-rwxrwxr-x 1 oracle oinstall 10407 Aug 19 12:27 dbstart
[oracle@mallard bin]$
User permissions:
[root@mallard 10]# id oracle
uid=503(oracle) gid=503(oinstall) groups=503(oinstall),504(dba)
[root@mallard 10]#
I can start the listener manually using "./lsnrctl start" and start the database manually from sql prompt using "SQL>startup" (as sysdba) with no problems. this only happens when using dbstart file. I am logged in as oracle user and all environment variables are set
Thank you for any help you could provide.I have the same problem, but i don't want insert this string
Connect sys/{password} as sysdbaI have deployed an Oracle 10g with os SunOS
$ uname -a
SunOS DB02 5.10 Generic_141444-09 sun4v sparc SUNW,Sun-Blade-T6320
I can connect with sys/password, but I can't login with
$ sqlplus /nolog
SQL*Plus: Release 10.2.0.1.0 - Production on Thu Jan 7 15:19:50 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
SQL> connect / as sysdba
ERROR:
ORA-01031: insufficient privilegesthe the startup and dbshut don't work.
Someone maybe help me?
Thanks,
Regards.
Lain -
Listener refused the connection with the following error: ORA-12500
Hi,
We had had some difficulties with our portal lately. All of a sudden portlets failed and started givin error messages all over our webpages.
I tried to login to EM Console to try and restart Portal OC4J and got this error
An error was encountered while loading page. An error occurred when attempting to connect to the Database.
Resolution:
Make sure that the database and listener are up.
If the database is up, make sure that the OracleAS Repository API files ias.properties and iasschema.xml are correctly configured.
If necessary, use the EM Console to reconfigure the host, user name and password associated with the database
Base Exception:
java.sql.SQLException
Listener refused the connection with the following error:
ORA-12500, TNS:listener failed to start a dedicated server process
The Connection descriptor used by the client was:
(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=PORTAL.MSS.EDUS.SI)(PORT=1521))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=ASDB.MSS.EDUS.SI)))
. Listener refused the connection with the following error:
ORA-12500, TNS:listener failed to start a dedicated server process
The Connection descriptor used by the client was:
(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=PORTAL.MSS.EDUS.SI)(PORT=1521))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=ASDB.MSS.EDUS.SI)))
In ..INF/network/sqlnet.log
Fatal NI connect error 12500, connecting to:
(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=portal.mss.edus.si)(PORT=1521))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=asdb.mss.edus.si)(CID=(PROGRAM=I:\Oracle\INF\Apache\Apache\Apache.exe)(HOST=CLUSTER1)(USER=SYSTEM))))
VERSION INFORMATION:
TNS for 32-bit Windows: Version 10.1.0.4.0 - Production
Windows NT TCP/IP NT Protocol Adapter for 32-bit Windows: Version 10.1.0.4.0 - Production
Time: 11-JUN-2007 13:00:24
Tracing not turned on.
Tns error struct:
ns main err code: 12564
TNS-12564: TNS:connection refused
ns secondary err code: 0
nt main err code: 0
nt secondary err code: 0
nt OS err code: 0
After restart everything works as normal. Any ideas what went wrong, or where to look for some additional answers?Ora12500 means your OS has run out of resources, so you cannot start a process on the Server Side. Post the complete error stack, the last lines show further information to troubleshoot this error.
-
Listener refused the connection with the following error: ORA-12500, TNS:li
I got this error when I use EM, or sqlplus:
Listener refused the connection with the following error: ORA-12500, TNS:listener failed to start a dedicated server process
when I do
$lsnrctl status:
here is the result
Service "abc.def.com" has 3 instance(s).
Instance "dbtest", status UNKNOWN, has 1 handler(s) for this service...
Instance "dbtest", status BLOCKED, has 1 handler(s) for this service...
Instance "dbtest", status READY, has 1 handler(s) for this service...
please help. Thanks.Ora12500 means your OS has run out of resources, so you cannot start a process on the Server Side. Post the complete error stack, the last lines show further information to troubleshoot this error.
-
Hi everybody,
To run WebDB2.0.5.6.1/oracle 8.0.5 on Linux/RH6.0
I obtain the following error message. This, results when
I prompted: $ sqlplus WEBDB@ORCL (ORCL is my database).
"ERROR:
ORA-12500: TNS:listener failed to start a dedicated server
process"
HELP: when I type : $ oerr ora 12500, I obtain the
following:
12500, 00000, "TNS:listener failed to start a dedicated
server process"
// *Cause: The process of starting up a dedicated server
process failed.
// The executable could not be found or the environment may
be set up
// incorrectly.
// *Action: Turn on tracing at the ADMIN level and
reexecute the operation.
// Verify that the ORACLE Server executable is present and
has execute
// permissions enabled. Ensure that the ORACLE environment
is specified
// correctly in LISTENER.ORA. The Oracle Protocol Adapter
that is being
// called may not be installed on the local hard drive.
Please check that
// the correct Protocol Adapter are successfully linked.
// If error persists, contact Oracle Customer Support.
Please help to solve this problem.
Regards,
Mohamed
nullHi Rob,
Thank you for your reply.
I follow your step
1. LSRNR STOP
message : "Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1))) The command completed successfully
2. LSRNR STOP
message : "Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1))) The command completed successfully
3. LSRNR EXIT
4. TNSPING TEGUH
message : "Attemping to contact (ADDRESS=(PROTOCOL=TCP)(HOST=teguhs_nt)(PORT=1521)) OK (220 msec)"
I do all your suggestion but error still exist.
I still need help. thank you.
regards
teguh -
Runtime error ora-12703 when running utl_mail
hello,
I call a procedure through push button to use UTL_MAIL.send(..) and I got error ora-12703.
There is no error during compilation.
For your info, I manage to execute the same code on stored procedure using TOAD and I received the email sent using TOAD and telnet from my local.
For info:
Forms developer version:
Forms [32 Bit] Version 10.1.2.0.2 (Production)
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
procedure:
PROCEDURE test_email IS
BEGIN
UTL_MAIL.send (
sender => '[email protected]',
recipients => '[email protected]',
cc => '[email protected]',
bcc => '[email protected]',
subject => 'Test',
MESSAGE => 'Hello World',
mime_type => 'text; charset=us-ascii',
priority => 3
END;
Could anyone please help me on this.
Regards,
DayangHi All,
I tried another function that use utl_smtp to send email.
Again I could recieve email when I execute the function in TOAD but got error ora-12703 when I ran using forms.
When I ran the form, only "debug 1st" apear, then after that it returned error ora-12703.
Function:
FUNCTION SEND_MAIL
(pIssuer IN VARCHAR2,
pReceiver IN VARCHAR2,
pSender IN VARCHAR2,
pSubject IN VARCHAR2,
pMessage IN VARCHAR2) RETURN VARCHAR2 IS
c utl_smtp.connection;
respuesta utl_smtp.reply;
pServer VARCHAR2(50) := '10.0.3.79';
CRLF CHAR(2) := CHR(13) || CHR(10);
BEGIN
message('debug 1st');
-- Abre la conexión al Server de correo
c := utl_smtp.open_connection(pServer);
message('debug2nd');
respuesta := utl_smtp.helo(c, pServer);
-- Inicia el Issuer del correo.
respuesta := utl_smtp.mail(c, pSender);
-- Inicia el Receiver
respuesta := utl_smtp.rcpt(c, pReceiver);
respuesta := utl_smtp.open_data(c);
-- Escribe la cabecera del e-mail
utl_smtp.write_data(c, 'From: ' || pIssuer || CRLF);
utl_smtp.write_data(c, 'To: ' || pReceiver || CRLF);
-- Escribe el Subject
utl_smtp.write_data(c, 'Subject: ' || pSubject || CRLF);
-- Escribe el texto del Message.
utl_smtp.write_data(c, CRLF || pMessage);
utl_smtp.write_data(c, CRLF || '.');
respuesta := utl_smtp.close_data(c);
-- Cierra la conexión
respuesta := utl_smtp.quit(c);
RETURN '0';
EXCEPTION
WHEN utl_smtp.transient_error OR utl_smtp.permanent_error THEN
utl_smtp.quit(c);
RETURN sqlerrm;
--raise_application_error(-20000,
-- 'El envío del email ha fallado devolviendo el siguiente error: ' || sqlerrm);
END;
Regards,
Dayang -
Error 1074396120 appears when using IMQA copy
error 1074396120 appears when using IMQA copy,when i used in vision its working but when i tried to execute in labview its showing error image not found and not valid image. pls help me regarding this .
Have a look
Thanks and Regards
Himanshu Goyal | LabVIEW Engineer- Power System Automation
Values that steer us ahead: Passion | Innovation | Ambition | Diligence | Teamwork
It Only gets BETTER!!! -
Hi there , Why Do I Receive Error Code -1073807253 When Using VISA
Error Code -1073807253
Hi ahmed,
you can attach picture directly in the forum...
If you would use an error indicator you could read an explanation of the error. It's a "framing error", happening sometimes when using serial connections...
Best regards,
GerdW
CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
Kudos are welcome -
What is the best way to display errors to users when using JSPs?
Hello,
Could someone suggest me the best way to display errors to users when using JSPs?
Many thanks in advance.
Rino
Thanks for the code snippet!
Rino
"Deepak Vohra" <[email protected]> wrote:
>
>
>The 'errorPage' attribute of the 'page' directive forwards uncaught run-time
>exceptions
>to an error processing page. For example:
>
><%@ page errorPage="error.jsp" %>
>
>redirects the browser to the JSP page error.jsp if an uncaught exception
>is encountered.
>
>
>Within error.jsp, indicate that it is an error-processing page, via the
>directive:
>
>
>
><%@ page isErrorPage="true" %>
>
>The Throwable object describing the exception may be accessed within
>the error
>page via the 'exception' implicit object.
>
>
><% if (exception != null) { %>
><p> An exception was thrown: <b> <%= exception %>
>
><p> With the following stack trace:
><pre>
>
><%
> ByteArrayOutputStream ostr = new ByteArrayOutputStream();
> exception.printStackTrace(new PrintStream(ostr));
> out.print(ostr);
>%>
></pre>
>
>
>
>"Rino Srivastava" <[email protected]> wrote:
>>
>>Hello,
>>
>>Could someone suggest me the best way to display errors to users when
>>using JSPs?
>>
>>Many thanks in advance.
>>
>>Rino
>
-
ORA-03001 "unimplemented feature" error for SQL when using view
Our ERP allows us (IT staff) to create Information Access Layers which are basically views. These can be "live" where the view is like your tradiitonal one or non-live, where a table of data is replicated on a schedule and a view is available over that table.
The following SQL runs fine with a non-live IAL but gives an ORA-03001 error when using a live one.
Any ideas why please? We are using 9.2.0.6
Thanks
with
d_list as
select territory, customer_name, order_no, sum(buy_qty_due) || ' x ' || catalog_desc d, sum(total_line_price_less_disc) v
from
ifsinfo.cust_ord_salescodes
where
site LIKE 'OKM' || '%'
and
line_date_entered >=TO_DATE ('01/06/2007','DD/MM/YYYY')
AND
line_date_entered <ADD_MONTHS (TO_DATE ('01/06/2007','DD/MM/YYYY'),2)+(1-1/(60*60*24))
AND
sub_division = 'GAS'
AND
line_item_no <= 0
AND
line_status != 'Cancelled'
group by
territory, customer_name, order_no, catalog_desc
select
d_list.territory,
d_list.customer_name,
d_list.order_no,
d,
0 as sum_value,
d_list.v
from
(select d_list.order_no, sum(V) sv from d_list having sum(V) > max(3000) group by d_list.order_no) s_list,
d_list
where
s_list.order_no=d_list.order_no
order by
d_list.territory, d_list.customer_name, d_list.order_no,d
/Note: If I run the following it is fine, but obviously does not provide what I want:
with
d_list as
select territory, customer_name, order_no, sum(buy_qty_due) || ' x ' || catalog_desc d, sum(total_line_price_less_disc) v
from
ifsinfo.cust_ord_salescodes
where
site LIKE 'OKM' || '%'
and
line_date_entered >=TO_DATE ('01/06/2007','DD/MM/YYYY')
AND
line_date_entered <ADD_MONTHS (TO_DATE ('01/06/2007','DD/MM/YYYY'),2)+(1-1/(60*60*24))
AND
sub_division = 'GAS'
AND
line_item_no <= 0
AND
line_status != 'Cancelled'
group by
territory, customer_name, order_no, catalog_desc
select
d_list.territory,
d_list.customer_name,
d_list.order_no,
d,
0 as sum_value,
d_list.v
from
--(select d_list.order_no, sum(V) sv from d_list having sum(V) > max(3000) group by d_list.order_no) s_list,
d_list
--where
--s_list.order_no=d_list.order_no
order by
d_list.territory, d_list.customer_name, d_list.order_no,d
/Thanks David. The actual SQL is as follows:
with
p_list as
(select * from
(select 'OKM' p_company,
'GAS' p_subdiv,
'01/06/2007' p_startdate,
2 p_months,
3000 p_minval,
DECODE(UPPER('OKM'),'OKM','DD/MM/YYYY','KMI','DD/MM/YYYY','OIA','MM/DD/YYYY') p_datefmt
from dual)
d_list as
select territory, customer_name, order_no, sum(buy_qty_due) || ' x ' || catalog_desc d, sum(total_line_price_less_disc) v
from
ifsinfo.cust_ord_salescodes,
p_list
where
site LIKE p_company || '%'
and
line_date_entered >=TO_DATE (p_startdate,p_datefmt)
AND
line_date_entered <ADD_MONTHS (TO_DATE (p_startdate,p_datefmt),p_months)+(1-1/(60*60*24))
AND
sub_division = p_subdiv
AND
line_item_no <= 0
AND
line_status != 'Cancelled'
group by
territory, customer_name, order_no, catalog_desc
select d_list.territory, d_list.customer_name, d_list.order_no, d, decode(lag(d_list.order_no) over (order by d_list.territory, d_list.customer_name, d_list.order_no),d_list.order_no,0,s_list.sv) as sum_value, d_list.v from
(select d_list.order_no, sum(V) sv from d_list, p_list having sum(V) > max(p_minval) group by d_list.order_no) s_list,
d_list
where
s_list.order_no=d_list.order_no
order by
d_list.territory, d_list.customer_name, d_list.order_no,d
/the mystery is why it works for a view over a table (created by SQL A) but not a view (which is SQL A).
The actual VIEW is:
SELECT
SUBSTR(co.contract,1,3) company,
co.contract site,
co.order_no order_no,
co.order_id order_type_code,
co.currency_code currency_code,
ROUND(1/col.currency_rate,x_curr_rounding_dp) currency_rate,
co.customer_po_no customer_po_no,
co.date_entered head_date_entered,
co.authorize_code coordinator,
NVL(co.market_code,coc.market_code) customer_market_code,
NVL(co.district_code,x_def_district_code) customer_district_code,
co.customer_no customer_no,
ifsapp.cust_ord_customer_api.get_name(co.customer_no) customer_name,
co.state head_status,
decode(co.state,'Cancelled','N','Invoiced/Closed','N','Y')
head_open_status,
ROUND (
ifsapp.customer_order_api.get_total_base_price(co.order_no)
,x_rounding_dp) total_order_value,
------- co.salesman_code head_salesman_code,
col.line_no line_no,
col.rel_no rel_no,
col.line_item_no line_item_no,
NVL(col.part_no,x_def_inv_part) inventory_part_no,
col.catalog_no sales_part_no,
col.catalog_desc catalog_desc,
col.date_entered line_date_entered,
col.catalog_type sales_part_type,
col.planned_ship_date line_planned_ship_date,
col.planned_delivery_date line_planned_delivery_date,
col.promised_delivery_date line_promised_delivery_date,
col.real_ship_date,
------- col.ref_id line_salesman_code,
col.state line_status,
decode(col.state,'Cancelled','N','Invoiced/Closed','N','Y')
line_open_status,
nvl(col.ref_id,co.salesman_code) salesman_code,
nvl(col.C_Salesman_Region_Code,sps.region_code) region_code,
nvl(col.C_Salesman_Division,sps.division) division,
nvl(col.C_Salesman_Sub_Division,sps.sub_division) sub_division,
nvl(col.C_Salesman_Territory,sps.territory) territory,
NVL2 (
ifsapp.customer_group_api.get_description(co.priority),co.priority,coc.cust_grp
) customer_group_code,
NVL(col.discount,0) discount_percentage,
NVL(col.order_discount,0) order_discount_percentage,
(1-NVL(col.discount,0)/100) *
(1-NVL(col.order_discount,0)/100) discount_factor,
1-(1-NVL(col.discount,0)/100) *
(1-NVL(col.order_discount,0)/100) less_discount_factor,
ROUND (
(DECODE(SIGN(col.line_item_no),1,0,col.buy_qty_due*col.base_sale_unit_price*col.price_conv_factor)*(1-(1-NVL(col.discount,0)/100)*(1-NVL(col.order_discount,0)/100)))
,x_rounding_dp) line_discount_amount,
ROUND (
greatest(col.buy_qty_due-col.qty_invoiced,0)*(DECODE(SIGN(col.line_item_no),1,0,col.base_sale_unit_price*col.price_conv_factor)*(1-(1-NVL(col.discount,0)/100)*(1-NVL(col.order_discount,0)/100)))
,x_rounding_dp) rem_line_discount_amount,
col.buy_qty_due buy_qty_due,
col.qty_invoiced qty_invoiced,
greatest(
col.buy_qty_due-col.qty_invoiced,0
) qty_remaining,
qty_shipped,
greatest(
col.buy_qty_due-col.qty_shipped,0
) qty_not_shipped,
ROUND (
DECODE(SIGN(col.line_item_no),1,0,col.base_sale_unit_price*col.price_conv_factor)
,x_rounding_dp) unit_line_price,
ROUND (
DECODE(SIGN(col.line_item_no),1,0,col.base_sale_unit_price*col.price_conv_factor)-
ROUND (
(DECODE(SIGN(col.line_item_no),1,0,col.buy_qty_due*col.base_sale_unit_price*col.price_conv_factor)*(1-(1-NVL(col.discount,0)/100)*(1-NVL(col.order_discount,0)/100)))
,x_rounding_dp)
,x_rounding_dp) unit_line_price_less_disc,
ROUND (
DECODE(SIGN(col.line_item_no),1,0,col.buy_qty_due*col.base_sale_unit_price*col.price_conv_factor)
,x_rounding_dp) total_line_price,
ROUND (
DECODE(SIGN(col.line_item_no),1,0,col.buy_qty_due*col.base_sale_unit_price*col.price_conv_factor)-
ROUND (
(DECODE(SIGN(col.line_item_no),1,0,col.buy_qty_due*col.base_sale_unit_price*col.price_conv_factor)*(1-(1-NVL(col.discount,0)/100)*(1-NVL(col.order_discount,0)/100)))
,x_rounding_dp)
,x_rounding_dp) total_line_price_less_disc,
ROUND (
DECODE(SIGN(col.line_item_no),1,0,greatest(col.buy_qty_due-col.qty_invoiced,0)*col.base_sale_unit_price*col.price_conv_factor)
,x_rounding_dp) rem_total_line_price,
ROUND (
DECODE(SIGN(col.line_item_no),1,0,greatest(col.buy_qty_due-col.qty_invoiced,0)*col.base_sale_unit_price*col.price_conv_factor)-
ROUND (
greatest(col.buy_qty_due-col.qty_invoiced,0)*(DECODE(SIGN(col.line_item_no),1,0,col.base_sale_unit_price*col.price_conv_factor)*(1-(1-NVL(col.discount,0)/100)*(1-NVL(col.order_discount,0)/100)))
,x_rounding_dp)
,x_rounding_dp) rem_total_line_price_less_disc,
NVL(co.commission_percentage,0) commission_percent,
1-NVL(co.commission_percentage,0)/100 commission_factor,
NVL(co.commission_percentage,0)/100 less_commission_factor,
col.cost
FROM
ifsapp.customer_order_line col,
ifsapp.customer_order co,
ifsapp.sales_part_salesman sps,
ifsapp.cust_ord_customer coc,
(select
2 x_rounding_dp,
6 x_curr_rounding_dp,
'9999999' x_def_inv_part,
'Domestic' x_def_district_code
from
dual) constants
WHERE
col.order_no=co.order_no
AND
co.customer_no = coc.customer_no
AND
(NVL(col.ref_id,co.salesman_code) = sps.salesman_code or sps.salesman_code is null)
------AND
------ co.state != 'Cancelled'
------AND
------ col.state !='Cancelled'
------AND
------ col.line_item_no <=0I suspect it is the level of complexity that Oracle cannot handle. I have seen notes about Oracle errors with views generating that ORA 03001, maybe I should log it with Oracle... -
Unable to parse query when using dblink in forms 4.5
Hi,
I have created a query that uses a DBlink because I need to do query on a table located on another dbase. I've used the query on creating my report using Reports 6i. The report needs to be called from a menu on our system, which was developed under Developer 2000 (forms 4.5). The problem is, when I tried to access the report from the menu, it returns the error 'unable to parse query'. What I did after getting error was to create a dummy module using Forms 6i, and call my report from there. It worked fine.
By the way, the table that I'm accessing using the dblink is under Oracle 9i dbase, and the dbase of the system that I've been working at is Oracle 8i.
I don't have any idea on what's causing this error. Is there a compatibility issue when using a dblink located in Oracle 9i database with forms 4.5?
Thanks!Hello,
Not sure if it is the good answer, but I know that Forms does not recognize dblink and owner.object syntax. You have to create a simple synomym that point to the distant object and use this synonym within Forms.
Francois
Maybe you are looking for
-
How do I update my studio creator from source 1.4 to 1.5
every time I try to make a foreach loop this message follows for-each loops are not supported in -source 1.4 (try -source 1.5 to enable for-each loops) how can I get source 1.5
-
Cost center empty at month end
dear all, iw ant toa ask you one fundamental question. is it require that the cost center should be empty at period end. i cam across the situation that some production cost center get some cost which cant be go to product. if i creat one more cost
-
Firefox window size differ from GoLive 'preview in browser.'
When I set up my site, all catagory pages was set to the correct size in the head actions resize window. When I download my site in Firefox the windows are smaller and are cut off at the bottom and right side. What gives?
-
Abap workbench for free to download
i m kinda newbie in abap development, now i m working in sap bps what sometimes i need to build some exits using abap, so id like to know if there is some abap workbench for free to download and practice at home, it exists? Regards Joseph
-
MaxDB 7.6.05.09 Create db inst fails on 'auto_extend'
Hello I have loaded MaxDB 7.6.05.09 and DBMGUI 7.6.00.37 (148140) on Windows Server 2003 SP2. I try and create a database instance with the DBMGUI but it fails on 'auto_extend' with return code -24805. Here are the steps I did: Start DBMGUI Use the C