Query SQL gives error
Hi allWhen I run the below code iam ending up with error Ora-01722: invalid number. Can you get it someone please let me know how to solve this problem.
Thanks in advance.
select ALT.S_ID, clt.cid
from
S1.T1 ALT
INNER JOIN TAR.T2 CLT
ON clt.cid = alt.ba_id
Datatypes of the colum
CLT.cid = number(10)
alt.ba_id = varchar2(15)
I even tried the TO_number on alt.S_id but iam still getting Ora-01722: invalid number on line1.
Oracle Ver : 10gR2
What comparison string and Oracle number implicitly converts the string as a number. For example, if alt.ba_id has at least one value not digital your query will fail. Try:
select ALT.S_ID, clt.cid
from
S1.T1 ALT
INNER JOIN TAR.T2 CLT
ON to_char(clt.cid) = alt.ba_id
/
SY.
Tags: Database
Similar Questions
-
Oracle version: 11.2.0.1.0
OS: oracle linux 6.6
VM: vmware
Problem. My oracle is running, and earphone works as well. but when I try to connect using sqldeveloper it gives errors. Please see the pictures below.
Thanks for your help.
Listener and host of info:
tnsnames.ora file:
You run sqldevloper on the same computer as the oracle database?
If so, you don't need any listener and can connect using the IPC rather than TCP. To connect as SYS, starting sqldeveloper as user 'oracle', sysdba role and type SID "orcl" and select the OS authentication.
-
Error giving a subquery, but with the outer query, it gives no error.
Hello
The following query gives error "ORA-00979: not a GROUP BY expression" (I know to use the filter condition in the WHERE clause, but for reasons explaining the problem, I use the HAVING clause)
SELECT DeptNo
WCP
HAVING comm IS NULL;
But when I use it as a subquery in as long as below, the query will run successfully (resultset may be wrong).
SELECT d.
BY d Dept.
(SELECT deptno
WCP
WITH comm IS NULL) a
WHERE d.deptno = a.deptno;
Please explain the reason.
Kind regards
DanishSort of philosophical question. But you're right, this behavior can be misleading.
-
State SQL 28000 and SQL Server error 18452
I have a SQL 2000 Server on a server with Windows Server 2003 computer.
I have a laptop with Windows Vista, for which we are unable to connect to the database and it gives an error 24000 state SQL and SQL Server error 18452 with description as "failed to connect to the user (null). Reason: Not associated with approved connection SQL server.
Please provide a solution to this problem.
Thank you
Hello
Questions like these are much better handled in the TechNet IT Pro Forums.
My moderator tools cannot transfer messages on Windows forums, please re - ask you question there.
http://social.technet.Microsoft.com/forums/en-us/category/SQLServer/
Jack - Microsoft MVP, Windows networking. WWW.EZLAN.NET -
Passing data from attachment of DB (Blob data Type) after the CLOB data type conversion, giving the error "ORA-06502: PL/SQL: digital error or value" in the PL/SQL package. If the BLOB size 32K > it will give another error works great my procedure.
For example, I enclose my code here.
function get_base64 (p_blob_in in blob) return clob is
CLOB v_clob;
CLOB v_result;
whole v_offset;
v_chunk_size PLS_INTEGER: = 12288;
v_buffer_varchar varchar2 (32767).
v_buffer_raw raw (32767).
Start
fnd_file.put_line (fnd_file.log, 'here');
If p_blob_in is null then
Returns a null value.
end if;
DBMS_LOB.CREATETEMPORARY (v_clob, true);
fnd_file.put_line (fnd_file.log, 'here1');
v_offset: = 1;
fnd_file.put_line (fnd_file.log, 'Loop value'-| ceil (DBMS_LOB.) GetLength (p_blob_in) / v_chunk_size));
because me in 1... ceil (DBMS_LOB. GetLength (p_blob_in) / v_chunk_size) loop
DBMS_LOB. Read (p_blob_in, v_chunk_size, v_offset, v_buffer_raw);
v_buffer_raw: = utl_encode.base64_encode (v_buffer_raw);
v_buffer_varchar: = utl_raw.cast_to_varchar2 (v_buffer_raw);
DBMS_LOB. WriteAppend (v_clob, length (v_buffer_varchar), v_buffer_varchar);
v_offset: = v_offset + v_chunk_size;
end loop;
fnd_file.put_line (fnd_file.log, 'Out of the loop');
v_result: = v_clob;
fnd_file.put_line (fnd_file.log, 'V_result length' - |) DBMS_LOB. GetLength (v_result));
fnd_file.put_line (fnd_file.log, 'V_result' - | v_result);
DBMS_LOB.freeTemporary (v_clob);
Return v_result;
exception
while others then
fnd_file.put_line (fnd_file.log, 'Error based on the encode_base64' - |) SQLERRM);
Returns a null value.
end;
In my main program I call this function as below:
Main proceedings...
l_return_clob CLOB.
Begin
....
l_return_clob: = get_base64 (p_blob_in);
-In returning it gives error - ORA-06502: PL/SQL: digital error or value
end;
Then, please mark the thread ANSWERED.
-
FDMEE VB API introduces not and gives "error of data access.
Hello FDM gurus.
While working with the FDMEE data integration tool, I had to test the capabilities of script VB to FDMEE and I tried the sample script of the ERPI Administrator's guide to copy a file from 1 place to another. Unfortunately the VB API does not work and generates an error "clsAppServerDM.fInitializeMainAPI: data access error." I don't know what am I missing here.
Thank you in advance,
VChakravarthy
If you format this SQL query and you attempt to run in the SQL tool like SQL Developer, you can see how there is a SQL syntax error. There is a missing expression in the "BOLD"
PV. LEVEL_VALUE =
),
He expects something like pv. LEVEL_VALUE = 1005 so the SQL query should return the file application root.
What I would do:
-Update FDMEE to 11.1.2.3.510
-Raise a SR with Oracle's Support.
SELECT MERGE)
SELECT pv. PROFILE_OPTION_VALUE
AIF_PROFILE_OPTION_VALUES PV
WHERE (PV. PROFILE_OPTION_NAME = p.PROFILE_OPTION_NAME)
AND the pv. LEVEL_ID = 1010
AND the pv. LEVEL_ID<=>=>
AND the pv. LEVEL_VALUE = 1005
), (
SELECT pv. PROFILE_OPTION_VALUE
AIF_PROFILE_OPTION_VALUES PV
WHERE (PV. PROFILE_OPTION_NAME = p.PROFILE_OPTION_NAME)
AND the pv. LEVEL_ID = 1005
AND the pv. LEVEL_ID<=>=>
AND pv. LEVEL_VALUE =
), (
SELECT pv. PROFILE_OPTION_VALUE
AIF_PROFILE_OPTION_VALUES PV
WHERE (PV. PROFILE_OPTION_NAME = p.PROFILE_OPTION_NAME)
AND the pv. LEVEL_ID = 1000
AND the pv. LEVEL_ID<=>=>
) PROFILE_OPTION_VALUE
OF AIF_PROFILE_OPTIONS p
WHERE p.PROFILE_OPTION_NAME = N 'PROFILE_APP_ROOT_DIRECTORY '.
-
query sql delicate... date of the created object.
friends...
I am trying to solve this query sql delicate for some time, but unable to progress when it comes to this day...
Q.
Query dba_objects and list all tables created yesterday ' sysdate - 1' and in another column of the list all the tables created ' sysdate - 7'.
-query below gives me to yesterday, but don't know how to have 'Last_week' column filled... maybe I join?
appreciate your time and effort in looking at this...select owner, object_name, to_char(created, 'MM-DD-YYYY HH24:MI:SS') "Yesterday", to_char(created, 'MM-DD-YYYY HH24:MI:SS') "Last_Week" from dba_objects where object_type = 'TABLE' and created >=trunc(sysdate - 1) and created < trunc(sysdate)
Thank you
Published by: khallas301 on March 19, 2013 09:27
typo edited... Thanks to frankkhallas301 wrote:
Query dba_objects and list all tables created yesterday ' sysdate - 1' and in another column of the list all the tables created ' sysdate - 7'.Well, sysdate - 7 ways months ago, not last week. If this is what you want, then:
select owner, object_name, case when trunc(created) = trunc(sysdate - 1) then to_char(created,'MM-DD-YYYY HH24:MI:SS') end "Yesterday", case when trunc(created) = trunc(sysdate - 7) then to_char(created, 'MM-DD-YYYY HH24:MI:SS') end "Week Ago" from dba_objects where object_type = 'TABLE' and ( trunc(created) = trunc(sysdate - 1) or trunc(created) = trunc(sysdate - 7) ) /
SY.
-
Lexical parameter error: ORA-06502: PL/SQL: digital error or value
Hello
I am facing a problem with my lexical parameter. I have a requirement where I have to pass a string to the db column. I think that I am facing problem with quotes. Please find the sample code below:
: lp_trans_type: = "" AND (RSV.transaction_type <>"F" OR RSV.transaction_type is NULL);"
The report compiles suceccfully but when run from window SRS that generates an error
REP-1401: "afterpform": PL/SQL unrecoverable error occurred.
ORA-06502: PL/SQL: digital error or value
Please help me how to set up the string within a string. Or please suggest a possible solution.
Thanks in advace.
Kind regards
PrakashCheck the data type and length of lp_trans_type.
This is not the error, but will not work your query:
RSV.transaction_type "F"
You forgot the =.
Published by: InoL on July 20, 2010 12:57
-
ORA-06502: PL/SQL: digital error or value, ORA-06512: online
I'm trying to do something like that. The application works well and returns a few rows when run independently. But the script gives error:
ORA-06502: PL/SQL: digital error or value
ORA-06512: at line 108
DECLARE
QCURSOR SYS_REFCURSOR;
QUERYCONTEXT DBMS_XMLGEN. CTXHANDLE;
RESULT CLOB.
RXML XMLType.
BEGIN
OPEN QCURSOR TO SELECT
SOMECOLUMN1 "Label1"
.
.
.
.
FROM SOMETABLE;
queryContext: = DBMS_XMLGEN.newContext (qcursor);
DBMS_XMLGEN.setRowSetTag (queryContext, 'Message');
DBMS_XMLGEN.setRowTag (queryContext, 'Record');
DBMS_XMLGEN.setNullHandling (queryContext DBMS_XMLGEN. EMPTY_TAG);
-To get the result
result: = DBMS_XMLGEN.getXML (queryContext);
-Narrow context
DBMS_XMLGEN.closeContext (queryContext);
NARROW Qcursor;
Train IS NULL THEN
DBMS_OUTPUT. PUT_LINE ('(NULL)');
ON THE OTHER
DBMS_OUTPUT. Put_line (result); -Line 108
END IF;
END;
Could not understand what the problem is? Any ideas?
OmerThe result is CLOB, I remember that they must be treated differently (not via dbms_output.put_line).
Something like:
dbms_output.put_line (DBMS_LOB. GetLength (l_xmlclob));
-display the content of CLOB
LOOP
l_loc: = dbms_lob.instr (l_xmlclob, Chr (10), l_anc);
l_text: = dbms_lob.substr (l_xmlclob, l_loc - l_anc, l_anc);
l_anc: = l_loc + 1;
dbms_output.put_line (l_text);
WHEN OUTPUT l_loc = 0;
END LOOP; -
On a windows 2003 R2 SP2, gives error 1053 SNMP service startup
On a windows 2003 R2 SP2, start the service SNMP gives error 1053 (below)
In the event log are event ID: 7000 & 7009 back (below)
Already tried: https://support.microsoft.com/en-us/kb/886695 (check the "allow service to interact with desktop").
I have also run the Windows updates for all high priority updates, replaced the files %windir%\system32\snmp*.* with those of another R2 SP2 server that is not the problem (after rename the original to the *.old files & copy the same files in the folder DLLcache so SFC would stop interfering ;)) and checked for other errors that may show a reason for this - the only thing that I can connect to it) , it is that services IISAdmin & GoogleUpdate (gupdate & gupdatem) having the same problem, but unrelated to seams...
TNX in advance for any response.
Kobi
Hello
Post your question in the TechNet Server Forums, as your question kindly is beyond the scope of these Forums.
http://social.technet.Microsoft.com/forums/WindowsServer/en-us/home?category=WindowsServer
See you soon.
-
Cannot access Pathname you have the appropriate permissions. Cannot download updates gives error code 643 and error code 5. Always gives access denied. You do not have the appropriate permissions. I am the administrator. Change all the complete control. Any other suggestions? Possible virus?
Hello
You are unable to download the updates?
Try the following steps to resolve the problem:
Method 1: Temporarily disable any security (including firewalls) software and check if the problem persists.
Check out these links:
http://Windows.Microsoft.com/en-us/Windows7/turn-Windows-Firewall-on-or-offhttp://Windows.Microsoft.com/en-us/Windows7/disable-antivirus-software
If disabling the security software solves the problem, then contact the manufacturer of the specific security software to fix the problem.
Important: Antivirus software can help protect your computer against viruses and other security threats. In most cases, you should not disable
your antivirus software. If you do not disable temporarily to install other software, you must reactivate as soon as you are finished. If you are
connected to the Internet or a network during the time that your antivirus software is disabled, your computer is vulnerable to attacks.Method 2:
See the article mentioned below and run the Fixit diagnostic tool to fix the error 643.You receive error code 80070643 0 x or 0 x 643, code error when you use the Windows Update or Microsoft Update Web sites to install updates:
http://support.Microsoft.com/kb/958052
Kind regards
Afzal Taher-Microsoft Support.
Visit our Microsoft answers feedback Forum and let us know what you think. -
my computer gives error 80080005. Can not find new downloads.
Who can help me. My computer gives error 80080005. He can not find new downloads.
I used Windows Vista Edition home premium.Peter
Here's a huge thread on the same topic. It might be useful. http://social.technet.Microsoft.com/forums/en/itprovistaapps/thread/21e0dd42-44AE-4E07-9A9A-b0a3263345ec
Marin
-
Windows give error 0x8DDD100A during the validation of windows Xp Professional SP3
Windows give error 0x8DDD100A during the validation of windows Xp Professional SP3
Diagnostic report (1.9.0027.0):
-----------------------------------------
Validation of Windows data-->
Validation status: sync clock error
Validation code: 10
Code of Validation caching: n/a
Windows product key: *-* - XC4Q9 - W7RTD-7Q8G6
Windows Product Key hash: Py7sqDcPBx6etfYqog5bPl/YZ9E =
Windows product ID: 76487-OEM-2211906-00826
Windows product ID type: 2
Windows license Type: OEM SLP
The Windows OS version: 5.1.2600.2.00010100.3.0.med
ID: {5DBB45BE-2BA5-44AD-92B3-2FE66CB59B95} (3)
Admin: Yes
TestCab: 0x0
LegitcheckControl ActiveX: Registered, 1.9.42.0
Signed by: Microsoft
Product name: n/a
Architecture: n/a
Build lab: N/A
TTS error: n/a
Validation of diagnosis: 025D1FF3-230-1_E2AD56EA-765-d003_E2AD56EA-766-0_E2AD56EA-134-80004005
Resolution state: n/aGiven Vista WgaER-->
ThreatID (s): n/a
Version: n/aWindows XP Notifications data-->
Cached result: n/a, hr = 0 x 80070002
File: Yes
Version: 1.9.9.1
WgaTray.exe signed by: n/a, hr = 0x80004005
WgaLogon.dll signed by: n/a, hr = 0x80004005OGA Notifications data-->
Cached result: n/a, hr = 0 x 80070002
Version: N/a, hr = 0 x 80070002
OGAExec.exe signed by: n/a, hr = 0 x 80070002
OGAAddin.dll signed by: n/a, hr = 0 x 80070002OGA data-->
Office status: 109 n/a
OGA Version: Registered, 2.0.48.0
Signed by: Microsoft
Office Diagnostics: B4D0AA8B-604-645_025D1FF3-230-1Data browser-->
Proxy settings: N/A
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Win32)
Default browser: C:\Program Files\Mozilla Firefox\firefox.exe
Download signed ActiveX controls: fast
Download unsigned ActiveX controls: disabled
Run ActiveX controls and plug-ins: allowed
Initialize and script ActiveX controls not marked as safe: disabled
Allow the Internet Explorer Webbrowser control scripts: disabled
Active scripting: allowed
Recognized ActiveX controls safe for scripting: allowedAnalysis of file data-->
Other data-->
Office details:{5DBB45BE-2BA5-44AD-92B3-2FE66CB59B95} 1.9.0027.0 5.1.2600.2.00010100.3.0.med x 32 *-*-*-*-7Q8G6 76487-OEM-2211906-00826 2 S-1-5-21-1232634059-1876962941-2206964983 Sony Corporation ,VGN-AR11M Phoenix Technologies LTD. R0130J6 20060626000000.000000 + 000 Sony Corporation, Sony Corporation, Sony Corporation 2BD13F07018400FE 0809 0409 New Zealand Standard Time(GMT+12:00) 0 2 Corporation Sony VAIO VGN - AR series 109 License data-->
N/AWindows Activation Technologies-->
N/A--> HWID data
N/AActivation 1.0 data OEM-->
BIOS string matches: Yes
Marker of the BIOS string: 1FF90:Sony Corporation | 1FF90:Sony company ITCNC
Marker of OEMBIOS string. DAT: Sony Corporation, Sony Corporation, Sony CorporationActivation 2.0 data OEM-->
N/ACheck your region settings, Date and time in Control Panel - you are a clock synchronization error.
-
Hello I have an email in outlook express I need to open a pdf file to, whenever I try to open the pdf file, told me that I have a SQL syntax error, how can I fix this problem
Hello
I suggest you to follow the steps in this link and check if it helps:
It will be useful.
-
request lost post on window for e-mail folder
I post a request on Windows Live Solution center about 27 July give my email name - and request still pending, not found or even open window Live Solution gives error!
the application in question was: when I put in order my window live folders mail had become unstable, I remove a double folder which appear empty, I moved subfolder of a folder and subfoulders lost.
I've lost Business-Optus DSL-city of Luigi Swan - Bank - various - Computer.They contain information that was not save on my important document
My request was if possible to recover them. Happened this week is so cool to be given there.
Thank you
Luigi
Hello
The question you have posted is related to Windows Live, and would be better suited in the Windows Live forum. Please visit the link below to find a community that will provide the support you want. http://windowslivehelp.com/product.aspx?ProductID=10
Maybe you are looking for
-
How can I set my own screens in tools >; Web Developer >; sensitive design mode?
From this page, https://developer.mozilla.org/en-US/docs/Tools/Responsive_Design_ViewI see that I can change the sizes in the drop down menu, but sounds like he accepts only one.If I select 320 x 480 and change 414 x 736, he adds '414 x 736 (custom)'
-
iTunes says that it cannot download episodes of my RSS
I get the error message "Unable to download episodes of your flow" when I try to submit my new podcast in iTunes. Food is created via Libsyn and FeedValidator says that it is valid. Work doesn't seem to be the problem. http://theembodiedwaypodcast.li
-
Satellite L645 - why my webcam only shows me?
My Satellite L645 came with the already installed webcam. I've never used, but I have to now.When I turn it on it displays the image of a kind of tropical lagoon instead of my face. I don't know where this picture is from is not a picture that I have
-
Satellite A60 - adapter not work and make a beep
Hello Hope this is the right forum. I have a laptop Toshiba A60 series, I don't know if his satelliate or A60 Equium, but it is. In any case this week adapter does not work. I had plugged and initially it seemed that he was not charging the laptop, e
-
Upgrade RAM G570 and the limits of Windows 7
So I intend to soon spend my PC3 - 10600 Samsung Original 4 GB 1333 MHz to Crucial PC3-10600 8 GB (2 x 4 GB) 1333 MHz. currently I have a version of Windows 7 x 86 and my RAM is limited to 2, 95 GB. I have been informed that the 32-bit version of Win