Why sql select 'Hello'||'world012345678' from dual; cause error?
I have problem and your help to solve it would be very much appreciated.
Can anybody tell why the result is so different for the following two sql-sentence in SQL/PLus?
sql>select 'Hello'||'world012345678' from dual;
sql>select 'Hello'||'world0123456789' from dual;
sql>select 'Hello'||'world012345678' from dual;
Result:
select 'Hello'||'world012345678' from dual
ERROR at line 1:
ORA-00600: internal error code, arguments: [17182], [158346180], [], [], [],
sql>select 'Hello'||'world0123456789' from dual;
Helloworld0123456789
I found that if the length of one string equals 14, then the sql will failed as the first sentence.
If you need to check the validity of DUAL then you have:
Select count(1) from DUAL ;
NOT
Select * from DUAL;
If you find more than 1, then
delete from dual;
insert into dual values ('x') ;
commit;
Then, try you offending query.
Similar Messages
-
Hi Team
WE have a EBS 11.5.10.2 with DB 11.1.0,7 on HPUX 11.23.
And we have a error;
APP:
FRM-40735: ON_ERROR trigger raised unhandled exception ORA-01001
SQL> select fnd_web_sec.URLEncrypt('hello', 'world') from dual;
select fnd_web_sec.URLEncrypt('hello', 'world') from dual
ERROR at line 1:
ORA-03113: end-of-file on communication channel
Process ID: 10119
Session ID: 978 Serial number: 7
Regards,
GuidoModeration:
Stay with your original thread on this topic:
https://forums.oracle.com/thread/2595095
It is current and people have already tried to help you there.
This new duplicate post is locked. -
Select multiple rows from dual table
Is it possible to select multiple rows from dual table using a single select statement.
i.e., i want the out put to be
column_name
1
2
3
4
Edited by: vidya.ramachandra on Dec 14, 2009 8:24 AMAside from the fact you're responding to an old thread...
1002424 wrote:
While using CONNECT BY, I see it always leave behind one row.
Suppose I have a condition based on which I have to generate constant rows like
SELECT 1 FROM DUAL WHERE ROWNUM < N;
Here if N = 0, still it gives out single row.... you are obviously doing something wrong in your code elsewhere, because that SQL statement does not always return a single row...
SQL> SELECT 1 FROM DUAL WHERE ROWNUM < 0;
no rows selected
SQL> -
Function in Select...from dual
Hi
One generate question.
We can do the following task in the Select Statements:-
1. Select Function_Name('Parameter) from dual;
2. Select Package_Name.Function_Name('Parameter') from dual;
Why dont we can call the procedure from the Select Statements:-
Select Procedure_Name('Parameter') from dual;
Can we we call the Procedure in side the procedure statements ???
Thanks
SandeepProcedure or function, it's not an Oracle question. In all prog language, it's same.
Where a function return one value into a variable (or query here) :
declare
var_in1 varchar2(10);
var_in2 varchar2(10);
var_out varchar2(10);
var_out:=myfunction(var_in1,var_in2);
print var_out;
--or
print myfunction(var_in1,var_in2);a procedure have some output variable (may be more than one) :
declare
var_in1 varchar2(10);
var_in2 varchar2(10);
var_out1 varchar2(10);
var_out2 varchar2(10);
Myprocedure(var_in1,var_in2,var_out1,var_out2);
print var_out1;
print var_out2;Nicolas. -
Interesting though esoteric problem of the form 'select a * b from dual'
Hi,
Warning: The question is of very little practical significance.
(There, I warned you!!)
Database version: 10.2.0.4.0
If I try to execute the following
select 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999 * 999999999999999999999999999999999999999999
from dualI get a 'ORA-01426: numeric overflow' error, which is fine.
But if I try to execute the following(note the decimal point)
select 3.14285712285715111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 * 7
from dualI get a 'ORA-00923: FROM keyword not found where expected' error.
Interestingly, if I remove any one digit from the first number(hence reducing its length by 1), the query works fine. Removing the spaces on either side of '*' still results in a 'ORA-00923: FROM keyword not found where expected' error though.
Can anyone explain why?
Regards,
SujoyHi, Sujoy,
There seems to be a limit of 255 characters (including decimal point) in a number literal. It doesn't seem to matter how m,any digits are before the decimal point and how many are after it. If you don't raise siome other error (such as "'ORA-01426: numeric overflow' error") first, then using a liteal with more than 255 characters will raise "'ORA-00923: FROM keyword not found where expected".
Multiplying by 7 in your example doesn't matter; the compiler never gets that far, because the error occurs in the compilation.
A sign doesn't matter, either, because signs are not part of the literal; they are operators applied to the value after the literal is evaluated. This is also evident because you can put withespace between the sign and the literal. -
Please Help me with long time oracle select sequence.nextval from dual
Hi
I'm in a real problem.In fact i have a J2EE5(JPA,Hibernate 3,EJB 3.0) project deployed at websphere 6 application server and i'm using Oracle 10 g R2.
Well i have a batch job that inserts into some table called AVERAGEBALANCE.
the problem is that when i have activated hibernate log i discoverd that the select from dual is the longest sql (it takes some times over second !!)
here is the log
11/07/2011 08:49:40,406 DEBUG SQL:DefaultQuartzScheduler-SimpleThreadPoolWorker-2 - insert into AVERAGEBALANCE (CDATE_, CUSER_, AVERAGEBALANCE_, AVERAGECREDITORBALANCE_, AVERAGEDEBITORBALANCE_, BEGINDATE_, CALCULATIONDATE_, CASHSUBACCOUNTCODE_, CASHSUBACCOUNTPK_, CODE_, ENDDATE_, NBCREDITORDAYS_, NBDEBITORDAYS_, TEDABCALCULATIONPERIODICITYPK_, VERSIONNUM_, PK_) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
11/07/2011 08:49:40,468 DEBUG SQL:DefaultQuartzScheduler-SimpleThreadPoolWorker-2 - select this_.PK_ as PK1_465_0_, this_.CDATE_ as CDATE2_465_0_, this_.CUSER_ as CUSER3_465_0_, this_.UUSER_ as UUSER4_465_0_, this_.BALANCE_ as BALANCE5_465_0_, this_.BALANCETYPE_ as BALANCET6_465_0_, this_.CASHSUBACCOUNTPK_ as CASHSUBA8_465_0_, this_.CASHSUBACCOUNTCODE_ as CASHSUBA7_465_0_, this_.CODE_ as CODE9_465_0_, this_.CURRENCYPK_ as CURRENCYPK11_465_0_, this_.CURRENCYCODE_ as CURRENC10_465_0_, this_.ENDDATE_ as ENDDATE12_465_0_, this_.EXCHANGERATE_ as EXCHANG13_465_0_, this_.ORIGINBALANCEPK_ as ORIGINB15_465_0_, this_.ORIGINBALANCECODE_ as ORIGINB14_465_0_, this_.POSITIONDATE_ as POSITIO16_465_0_, this_.REVALUATIONDATE_ as REVALUA17_465_0_, this_.SUMOFCREDITS_ as SUMOFCR18_465_0_, this_.SUMOFDEBITS_ as SUMOFDE19_465_0_, this_.UDATE_ as UDATE20_465_0_, this_.VERSIONNUM_ as VERSIONNUM21_465_0_ from CASHAB this_ where this_.CASHSUBACCOUNTCODE_=? and this_.BALANCETYPE_=? and this_.POSITIONDATE_<? and this_.ENDDATE_>=? and this_.BALANCE_<>?
11/07/2011 08:49:40,468 DEBUG SQL:DefaultQuartzScheduler-SimpleThreadPoolWorker-2 - select AVERAGEBALANCE_.nextval from dual
11/07/2011 08:49:41,484 DEBUG SQL:DefaultQuartzScheduler-SimpleThreadPoolWorker-2 - insert into AVERAGEBALANCE (CDATE_, CUSER_, AVERAGEBALANCE_, AVERAGECREDITORBALANCE_, AVERAGEDEBITORBALANCE_, BEGINDATE_, CALCULATIONDATE_, CASHSUBACCOUNTCODE_, CASHSUBACCOUNTPK_, CODE_, ENDDATE_, NBCREDITORDAYS_, NBDEBITORDAYS_, TEDABCALCULATIONPERIODICITYPK_, VERSIONNUM_, PK_) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)well i have increased the sequence cache in fact here is the creation code of the sequence.
CREATE SEQUENCE "COMPTAPERF5"."AVERAGEBALANCE_" MINVALUE 1 MAXVALUE 999999999999999999999 INCREMENT BY 1 START WITH 1 CACHE 400 NOORDER NOCYCLE ;i think that there is some oracle parameter to tune
Thanks in advance
Edited by: B.Mansour Nizar on 11 juil. 2011 01:04
Edited by: B.Mansour Nizar on 11 juil. 2011 06:33
Edited by: B.Mansour Nizar on 11 juil. 2011 06:34
Edited by: B.Mansour Nizar on 11 juil. 2011 06:34
Edited by: B.Mansour Nizar on 11 juil. 2011 06:35
Edited by: B.Mansour Nizar on 11 juil. 2011 06:35
Edited by: B.Mansour Nizar on 11 juil. 2011 06:36
Edited by: B.Mansour Nizar on 15 juil. 2011 07:42I found it.
It's not due to oracle but it's a hibernate issue.In fact if setting FlushMode to Manual.It wil flush the in memory entities after that it will fire the insert statement.
Here's the log.
15/07/2011 15:32:47,984 DEBUG SQL:DefaultQuartzScheduler-SimpleThreadPoolWorker-4 - select CASHAB_.nextval from dual
15/07/2011 15:32:47,984 TRACE AbstractBatcher:DefaultQuartzScheduler-SimpleThreadPoolWorker-4 - preparing statement
15/07/2011 15:32:47,984 DEBUG SequenceGenerator:DefaultQuartzScheduler-SimpleThreadPoolWorker-4 - Sequence identifier generated: 20441
15/07/2011 15:32:47,984 DEBUG AbstractBatcher:DefaultQuartzScheduler-SimpleThreadPoolWorker-4 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
15/07/2011 15:32:47,984 TRACE AbstractBatcher:DefaultQuartzScheduler-SimpleThreadPoolWorker-4 - closing statement
15/07/2011 15:32:47,984 DEBUG ConnectionManager:DefaultQuartzScheduler-SimpleThreadPoolWorker-4 - aggressively releasing JDBC connection
15/07/2011 15:32:47,984 DEBUG ConnectionManager:DefaultQuartzScheduler-SimpleThreadPoolWorker-4 - releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)]
15/07/2011 15:32:47,984 DEBUG AbstractSaveEventListener:DefaultQuartzScheduler-SimpleThreadPoolWorker-4 - generated identifier: 20441, using strategy: org.hibernate.id.SequenceHiLoGenerator
15/07/2011 15:32:47,984 TRACE AbstractSaveEventListener:DefaultQuartzScheduler-SimpleThreadPoolWorker-4 - saving [com.bfi.cpt.bal.cas.CashAccountingBalance#20441]
15/07/2011 15:32:47,984 TRACE Versioning:DefaultQuartzScheduler-SimpleThreadPoolWorker-4 - using initial version: 0
15/07/2011 15:32:47,984 TRACE AbstractFlushingEventListener:DefaultQuartzScheduler-SimpleThreadPoolWorker-4 - flushing session
15/07/2011 15:32:47,984 DEBUG AbstractFlushingEventListener:DefaultQuartzScheduler-SimpleThreadPoolWorker-4 - processing flush-time cascades
15/07/2011 15:32:47,984 TRACE Cascade:DefaultQuartzScheduler-SimpleThreadPoolWorker-4 - processing cascade ACTION_PERSIST_ON_FLUSH for: com.bfi.cpt.cht.cas.CashSubAccount
15/07/2011 15:32:47,984 TRACE Cascade:DefaultQuartzScheduler-SimpleThreadPoolWorker-4 - done processing cascade ACTION_PERSIST_ON_FLUSH for: com.bfi.cpt.cht.cas.CashSubAccount
15/07/2011 15:32:47,984 TRACE Cascade:DefaultQuartzScheduler-SimpleThreadPoolWorker-4 - processing cascade ACTION_PERSIST_ON_FLUSH for: com.bfi.ref.cur.Currency
15/07/2011 15:32:47,984 TRACE Cascade:DefaultQuartzScheduler-SimpleThreadPoolWorker-4 - done processing cascade ACTION_PERSIST_ON_FLUSH for: com.bfi.ref.cur.Currency
15/07/2011 15:32:47,984 TRACE Cascade:DefaultQuartzScheduler-SimpleThreadPoolWorker-4 - processing cascade ACTION_PERSIST_ON_FLUSH for: com.bfi.cpt.bal.cas.CashAccountingBalance
15/07/2011 15:32:47,984 TRACE Cascade:DefaultQuartzScheduler-SimpleThreadPoolWorker-4 - done processing cascade ACTION_PERSIST_ON_FLUSH for: com.bfi.cpt.bal.cas.CashAccountingBalance
15/07/2011 15:32:47,984 DEBUG AbstractFlushingEventListener:DefaultQuartzScheduler-SimpleThreadPoolWorker-4 - dirty checking collections
15/07/2011 15:32:47,984 TRACE AbstractFlushingEventListener:DefaultQuartzScheduler-SimpleThreadPoolWorker-4 - Flushing entities and processing referenced collections
15/07/2011 15:32:47,984 TRACE AbstractFlushingEventListener:DefaultQuartzScheduler-SimpleThreadPoolWorker-4 - Processing unreferenced collections
15/07/2011 15:32:47,984 TRACE AbstractFlushingEventListener:DefaultQuartzScheduler-SimpleThreadPoolWorker-4 - Scheduling collection removes/(re)creates/updates
15/07/2011 15:32:47,984 DEBUG AbstractFlushingEventListener:DefaultQuartzScheduler-SimpleThreadPoolWorker-4 - Flushed: 1 insertions, 0 updates, 0 deletions to 3 objects
15/07/2011 15:32:47,984 DEBUG AbstractFlushingEventListener:DefaultQuartzScheduler-SimpleThreadPoolWorker-4 - Flushed: 0 (re)creations, 0 updates, 0 removals to 0 collections
15/07/2011 15:32:47,984 DEBUG Printer:DefaultQuartzScheduler-SimpleThreadPoolWorker-4 - listing entities:
15/07/2011 15:32:47,984 DEBUG Printer:DefaultQuartzScheduler-SimpleThreadPoolWorker-4 - com.bfi.ref.cur.Currency{translatedName=null, certain=false, iso3166=788, quotity=1, identifier=TND, creationUser=admin, internalCode=null, name=Dinars Tunisien, creationDate=2011-07-11 14:43:06, code=TND, versionNum=0, decimal=3, updateUser=null, updateDate=null, pk=136, decimalName=millimes}
15/07/2011 15:32:47,984 DEBUG Printer:DefaultQuartzScheduler-SimpleThreadPoolWorker-4 - com.bfi.cpt.bal.cas.CashAccountingBalance{cashSubAccount=com.bfi.cpt.cht.cas.CashSubAccount#400201, originBalanceCode=null, exchangeRate=null, sumOfDebits=0.0, endDate=31 décembre 9999, creationUser=bna, currencyPk=136, creationDate=2011-07-15 15:32:47, cashSubAccountCode=BNA/PCI_BNA/82-TND, code=2010-07-30/BNA/PCI_BNA/82-TND/AccountingDateBalance/TND, versionNum=0, originBalancePk=null, currency=com.bfi.ref.cur.Currency#136, updateUser=null, originBalance=null, balanceType=AccountingDateBalance, updateDate=null, positionDate=30 juillet 2010, sumOfCredits=10.0, pk=20441, cashSubAccountPk=400201, revaluationDate=null, balance=-10.0, currencyCode=TND}
15/07/2011 15:32:47,984 DEBUG Printer:DefaultQuartzScheduler-SimpleThreadPoolWorker-4 - com.bfi.cpt.cht.cas.CashSubAccount{name2=null, accountPk=81, name=null, versionNum=0, currency=com.bfi.ref.cur.Currency#136, updateDate=null, chartByEntity=com.bfi.cpt.cht.std.ChartByEntity#2, refAccount=null, currencyCode=TND, chartByEntityCode=BNA/PCI_BNA, refAccountCode=null, creationDate=2011-07-15 15:25:45, account=com.bfi.cpt.cht.cas.StandardAccount#81, freeKey10=null, freeKey11=null, chartByEntityPk=2, freeKey12=null, updateUser=null, refAccountPk=null, freeKey13=null, freeKey14=null, freeKey15=null, freeKey16=null, freeKey17=null, accountCode=PCI_BNA/81, freeKey18=null, freeKey19=null, freeKey0=null, freeKey1=null, freeKey2=null, freeKey3=null, freeKey4=null, freeKey5=null, freeKey6=null, freeKey7=null, freeKey8=null, freeKey9=null, number=82-TND, creationUser=bna, freeKey20=null, freeKey21=null, freeKey22=null, freeKey23=null, freeKey24=null, freeKey25=null, freeKey26=null, freeKey27=null, freeKey28=null, freeKey29=null, currencyPk=136, code=BNA/PCI_BNA/82-TND, freeKey30=null, freeKey31=null, freeKey32=null, pk=400201}
15/07/2011 15:32:47,984 TRACE AbstractFlushingEventListener:DefaultQuartzScheduler-SimpleThreadPoolWorker-4 - executing flush
15/07/2011 15:32:47,984 TRACE ConnectionManager:DefaultQuartzScheduler-SimpleThreadPoolWorker-4 - registering flush begin
15/07/2011 15:32:47,984 DEBUG UpdateTimestampsCache:DefaultQuartzScheduler-SimpleThreadPoolWorker-4 - Pre-invalidating space [CASHAB]
15/07/2011 15:32:47,984 TRACE AbstractEntityPersister:DefaultQuartzScheduler-SimpleThreadPoolWorker-4 - Inserting entity: [com.bfi.cpt.bal.cas.CashAccountingBalance#20441]
15/07/2011 15:32:47,984 TRACE AbstractEntityPersister:DefaultQuartzScheduler-SimpleThreadPoolWorker-4 - Version: 0
15/07/2011 15:32:47,984 DEBUG AbstractBatcher:DefaultQuartzScheduler-SimpleThreadPoolWorker-4 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
15/07/2011 15:32:47,984 DEBUG ConnectionManager:DefaultQuartzScheduler-SimpleThreadPoolWorker-4 - opening JDBC connection
15/07/2011 15:32:47,984 DEBUG SQL:DefaultQuartzScheduler-SimpleThreadPoolWorker-4 - insert into CASHAB (CDATE_, CUSER_, BALANCE_, BALANCETYPE_, CASHSUBACCOUNTCODE_, CASHSUBACCOUNTPK_, CODE_, CURRENCYCODE_, CURRENCYPK_, ENDDATE_, POSITIONDATE_, SUMOFCREDITS_, SUMOFDEBITS_, VERSIONNUM_, PK_) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)Edited by: B.Mansour Nizar on 15 juil. 2011 07:38
Edited by: B.Mansour Nizar on 15 juil. 2011 07:39
Edited by: B.Mansour Nizar on 15 juil. 2011 07:43 -
How to calculate a string (select '1 + 1' from dual;)
I have this system that gives me data (roughly a gig per hour) in the format:
Time_idle
13h 56m
56m 23s
24h 23m
4h 3m
4m 3s
I have to translate it into date, or desimal hour so I can use it in calculations and SQL.
How can I do this?
I have tried the following:
select RTRIM(REPLACE(REPLACE(REPLACE(REPLACE(time_idle,'h',''),'m','/60'),'s','/3600'),' ','+'),'+') from thedate where prosess = 1;
and I then get:
result:
10+54/60
14+12/60
54/60+1/3600
which is correct, if I could get Oracle to calculate the number sum instead of just providing me with the string value. How do I make Oracle calculate the value of the string?
Or how can I use to_date function to translate the text into a date?
Anyone know?
BBUnfortunately this soultion breaks down when the time involved exceeds 24 hours. Try it for the given data sample 24h 23m ...
SQL> select (to_number(to_char(to_date('24m 23m', 'HH24"h" MI"m" SS"s"'), 'HH24'))) +
2 (to_number(to_char(to_date('24m 23m', 'HH24"h" MI"m" SS"s"'), 'MI'))/60) +
3 (to_number(to_char(to_date('24m 23m', 'HH24"h" MI"m" SS"s"'), 'SS'))/3600) total
4 from dual
5 /
select (to_number(to_char(to_date('24m 23m', 'HH24"h" MI"m" SS"s"'), 'HH24'))) +
ERROR at line 1:
ORA-01850: hour must be between 0 and 23
SQL> Cheers, APC -
SQL Select 1 record from each department
assume emp table
1- i want to retrive 1 employee from each department
2- 2 from each
3- total 20 records 1st employee from 1st dept, 2nd from 2nd, 3rd from 3rd, 4th from 1st , 5th from 2nd and so on
Edited by: Fakhr-e-Alam on Aug 10, 2011 3:20 AMIs this homework? Remember to give OTN Forums full credit when you hand in your assignment.
This is how to do the first one: you shoudl be able to figure out the others from here.
SQL> select e.*
2 from emp e
3 where (empno, 1) in
4 ( select x.empno
5 , row_number() over (partition by x.deptno
6 order by x.hiredate )
7 from emp x )
8 order by e.deptno
9 /
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
7782 BOEHMER MANAGER 7839 09-JUN-81 2450 10
7369 CLARKE CLERK 7902 17-DEC-80 800 20
7499 VAN WIJK SALESMAN 7698 20-FEB-81 1600 300 30
8101 PSMITH 03-DEC-10 40
8060 VERREYNNE PLUMBER 8061 08-APR-08 4000 50
SQL>In this case, the employees are ordered on the basis of HIREDATE, so the longest serving employees are selected from each department. Other definitions of "first" will require different sorting criteria. You know your own business rules.
Cheers, APC
Edited by: APC on Aug 10, 2011 10:33 AM -
Hello my friends:
I attempted to run a few packages programmatically using the code and solution on this page:
http://msdn.microsoft.com/en-us/library/ms136090.aspx
I observed that the script and process failed when I use the connection in SSIS/SSDT connection Manager in Visual Studio 2013. Meaning if I create a Connection for the Project in the Connection Manager and use it on tasks.
However, the project and packages will run just fine if I simply add individual connection to each task where needed and do not use the Connection manager.
If I use the Connection Manager, I get this error: This only happens when I run the package programmatically,
if I run the package directly from Visual Studio, I get no errors.
Error Message:
Error in Microsoft.SqlServer.Dts.Runtime.Package/ : The connection "{0E6E938E-B0
84-45E6-9110-0D532BD61787}" is not found. This error is thrown by Connections co
llection when the specific connection element is not found.
Error in Microsoft.SqlServer.Dts.Runtime.TaskHost/SSIS.Pipeline : Cannot find th
e connection manager with ID "{0E6E938E-B084-45E6-9110-0D532BD61787}" in the con
nection manager collection due to error code 0xC0010009. That connection manager
is needed by "SQL Server Destination.Connections[OleDbConnection]" in the conne
ction manager collection of "SQL Server Destination". Verify that a connection m
anager in the connection manager collection, Connections, has been created with
that ID.
Error in Microsoft.SqlServer.Dts.Runtime.TaskHost/SSIS.Pipeline : SQL Server Des
tination failed validation and returned error code 0xC004800B.
Error in Microsoft.SqlServer.Dts.Runtime.TaskHost/SSIS.Pipeline : One or more co
mponent failed validation.
Error in Microsoft.SqlServer.Dts.Runtime.TaskHost/ : There were errors during ta
sk validation.
Connection Manager Screenshot:
I am using that connection in an SQL Server Destination Task:
And here is the code:
class Program
class MyEventListener : DefaultEvents
public override bool OnError(DtsObject source, int errorCode, string subComponent,
string description, string helpFile, int helpContext, string idofInterfaceWithError)
Console.WriteLine("Error in {0}/{1} : {2}", source, subComponent, description);
return false;
static void Main(string[] args)
string pkgLocation;
Package pkg;
Application app;
DTSExecResult pkgResults;
MyEventListener eventListener = new MyEventListener();
pkgLocation =
@"C:\Users\Administrator\Desktop\ExampleConnectionMgr\DataExtractionB.dtsx";
app = new Application();
pkg = app.LoadPackage(pkgLocation, eventListener);
pkgResults = pkg.Execute(null, null, eventListener, null, null);
Console.WriteLine(pkgResults.ToString());
Console.ReadKey();
Thank you everyone!I have confirmed that this problem, at least on the surface is caused by the lack of reference to the Connection in the Connection Manager as indicated by the error message.
The solution here will require that the Connection is set directly within each task.
If I simply set the connection in each task then the page runs just fine programmatically:
I am also able to convert the Connection in the Connection Manager to Package Connection as shown in the screen shot below. This will override all references to the Connection Manager and make the connection local within each package or package
task.
Is there any other solution out there?
Thanks again!
Synth.
This is exactly what I asked for in my previous post. Sorry if it wasnt clear.
I guess the problem is in your case you're creating connection manager from VS which is not adding any reference of it to packages which is why its complaining of the missing connection reference
Please Mark This As Answer if it solved your issue
Please Mark This As Helpful if it helps to solve your issue
Visakh
My MSDN Page
My Personal Blog
My Facebook Page
Hi my friend:
Do you know how I can include the connection programmatically in code?
I found this article but it is not very clear to me:
I do not want to create a package in code, just the connection so that the program can run.
Here is the article:
http://msdn.microsoft.com/en-us/library/ms136093.aspx
Thank you so much.
Patrick -
CF8 upgrade from Cf7 causing error
Okay, i've done plenty of CF7 to CF8 upgrades and I have
never seen this issue. I run the autoplay,.exe and InstallAnywhere
launches and I make it to the language select screen and click
okay, About 3/4 of the way through the next status bar. I get a
Fatal Application Error pop-up box stating This Application has
Unexpectedly Quit. Invocation of theis Java Application has caused
an InvocationTargetException. This application will now exit (LAX).
The details button then states this:
java.lang.NumberFormatException: For input string: "wo"
at
java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
at java.lang.Integer.parseInt(Integer.java:447)
at java.lang.Integer.valueOf(Integer.java:526)
at java.lang.Integer.decode(Integer.java:918)
at ZeroGia.a(DashoA8113)
at
com.zerog.ia.installer.util.magicfolders.JavaHomeMF.b(DashoA8113)
at
com.zerog.ia.installer.util.magicfolders.MagicFolder.initializeAllMagicFolderPaths(DashoA 8113)
at com.zerog.ia.installer.LifeCycleManager.j(DashoA8113)
at com.zerog.ia.installer.LifeCycleManager.h(DashoA8113)
at com.zerog.ia.installer.LifeCycleManager.a(DashoA8113)
at com.zerog.ia.installer.Main.main(DashoA8113)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.zerog.lax.LAX.launch(DashoA8113)
at com.zerog.lax.LAX.main(DashoA8113)
The installation log shows this: (no errors)
Fri Jul 18 08:49:14 CDT 2008
Free Memory: 9485 kB
Total Memory: 27388 kB
java.class.path:
C:\Documents and Settings\school%world\Local
Settings\Temp\1\I1216388864\InstallerData\IAClasses.zip
C:\Documents and Settings\school%world\Local
Settings\Temp\1\I1216388864\Windows\resource\jdglue.zip
C:\Documents and Settings\school%world\Local
Settings\Temp\1\I1216388864\InstallerData\Execute.zip
C:\Documents and Settings\school%world\Local
Settings\Temp\1\I1216388864\Windows\InstallerData\Execute.zip
C:\Documents and Settings\school%world\Local
Settings\Temp\1\I1216388864\InstallerData\Resource1.zip
C:\Documents and Settings\school%world\Local
Settings\Temp\1\I1216388864\Windows\InstallerData\Resource1.zip
C:\Documents and Settings\school%world\Local
Settings\Temp\1\I1216388864\InstallerData
C:\Documents and Settings\school%world\Local
Settings\Temp\1\I1216388864\Windows\InstallerData
ZGUtil.CLASS_PATH:
C:\Documents and Settings\school%world\Local
Settings\Temp\1\I1216388864\InstallerData\IAClasses.zip
C:\Documents and Settings\school%world\Local
Settings\Temp\1\I1216388864\Windows\resource\jdglue.zip
C:\Documents and Settings\school%world\Local
Settings\Temp\1\I1216388864\InstallerData\Execute.zip
C:\Documents and Settings\school%world\Local
Settings\Temp\1\I1216388864\InstallerData
sun.boot.class.path:
C:\Documents and Settings\school%world\Local
Settings\Temp\1\I1216388864\Windows\resource\jre\lib\resources.jar
C:\Documents and Settings\school%world\Local
Settings\Temp\1\I1216388864\Windows\resource\jre\lib\rt.jar
C:\Documents and Settings\school%world\Local
Settings\Temp\1\I1216388864\Windows\resource\jre\lib\sunrsasign.jar
C:\Documents and Settings\school%world\Local
Settings\Temp\1\I1216388864\Windows\resource\jre\lib\jsse.jar
C:\Documents and Settings\school%world\Local
Settings\Temp\1\I1216388864\Windows\resource\jre\lib\jce.jar
C:\Documents and Settings\school%world\Local
Settings\Temp\1\I1216388864\Windows\resource\jre\lib\charsets.jar
C:\Documents and Settings\school%world\Local
Settings\Temp\1\I1216388864\Windows\resource\jre\classes
java.ext.dirs:
C:\Documents and Settings\school%world\Local
Settings\Temp\1\I1216388864\Windows\resource\jre\lib\ext
C:\WINDOWS\Sun\Java\lib\ext
java.version == 1.6.0_01 (Java 1)
java.vm.name == Java HotSpot(TM) Client VM
java.vm.vendor == Sun Microsystems Inc.
java.vm.version == 1.6.0_01-b06
java.vm.specification.name == Java Virtual Machine
Specification
java.vm.specification.vendor == Sun Microsystems Inc.
java.vm.specification.version == 1.0
java.specification.name == Java Platform API Specification
java.specification.vendor == Sun Microsystems Inc.
java.specification.version == 1.6
java.vendor == Sun Microsystems Inc.
java.vendor.url ==
http://java.sun.com/
java.class.version == 50.0
java.compiler == null
java.home == C:\Documents and Settings\school%world\Local
Settings\Temp\1\I1216388864\Windows\resource\jre
java.io.tmpdir == C:\DOCUME~1\SCHOOL~1\LOCALS~1\Temp\1\
os.name == Windows 2003
os.arch == x86
os.version == 5.2
path.separator == ;
file.separator == \
file.encoding == Cp1252
user.name == school%world
user.home == C:\Documents and Settings\school%world
user.dir == C:\Documents and Settings\school%world\Local
Settings\Temp\1\I1216388864\Windows
user.language == en
user.region == null
Nothing was installed.
Installed by InstallAnywhere 8.0.1 Enterprise Build 3080, by
Macrovision
User Interactions
Summary
Installation: Successful
This is a client's server so I have limited knowledge of
configuration that isn't obvious. I did notice that outbound port
80 seems to be blocked as I can't hit web pages from the server,
but DNS resolution works. Inbound port 80 is obviously open because
the current sites running on this server are reachable. I also
noticed FuseTalk is installed Any pointers as to what the issue
might be would be very helpful.
Thanksbooster94 wrote:
> Any pointers as to what the
> issue might be would be very helpful.
>
> Thanks
The first suggestion is to check the Actual File Size and MD5
Checksum
of the file. Assuming you are installing from a download file
as is
common, the file may be incomplete.
The ColdFusion Download page provides the expect values.
http://www.adobe.com/cfusion/tdrc/index.cfm?product=coldfusion -
Calling BSP application from Portal causes error
Hi,
called a bsp application from our portal. The application prompts the following error message:
BSP Exception: The object sap-tray-type=PLAIN_sap-tray-padding=X_sap_ep_version=7.00.200611091758_sap_ep_baseurl=http://v900stwmk1902.v900dtk1.v900.intern:50000/irj/portal in der URL /sap bD1kZSZjPTIwMCZwPTMwOTUxJnY9NyUyZTAwJmk9MSZzPVNJRCUzYUFOT04lM2Fhc2FwdDAzZW4xX1QwMl8wMCUzYXBFMVdnMmlqS21LYnNSZ01mMzIyLXpRdkwxMjdoYWF2NHFBeU9fTGEtQVRU)/bc/bsp/sap/zsi02/sap-tray-type=PLAIN&sap-tray-padding=X&sap_ep_version=7%2e00%2e200611091758&sap_ep_ is not valid.
We used an BSP iView (EP 7.0 and BI 7.0) Any ideas?
Thanks.
FrankHi,
I am not sure how did you get that bsp-url but here are the steps:
1) Create a system and assign an alias to it.
2) Make sure you give proper values in Connector, User Management and ITS Property Category
3) Check the connection by creating a sample SAP Transaction iview using WebGUI
4) If this is working fine, then create a BSP iview. Make sure you select proper system alias, BSP Defination Type (BSP), give the correct Application Namespace, BSP Application, Customer Namespace and start page.
Let me know what are the values you have entered here and we can try to fix this problem.
Cheers,
Sunil
PS: Reward points for helpful answers. -
Files will not empty from trash, causing "errors"
Okay, I know this has been covered, but nothing is working. I have 3 macs, the one in question is a Mac mini, Mac OS X (10.6.8). There are files in the trash that won't empty. They are from external drives that no longer exist. Every time I empty trash, I get "file in use" error, and I continue. Now, new issue, I have added files to trash (from external drive) and it wont empty either (this is usb thumb drive, FAT 32, still exists, is inserted and showing in finder). First, are these actually starting to clog up my system drive, or are they just broken pointers, no real size? Second, why can't I just reset trash and get rid of them. I have been dealing with this for over a year, and it is getting worse. The external drives that started the issue no longer exist, they have been reformatted. What do I do. There must be a way to rebuild the trash. I am an "under the hood" guy, is there a way to see where they are hidden and just manually remove them? Please help.
Thanks in advance,
RichHi Rich,
They are Hidden files.
Show Hidden Files 1.0...
http://www.macupdate.com/app/mac/29096/show-hidden-files
Hidden Way is a toggle for hidden files view in Finder...
http://www.macupdate.com/app/mac/25716/hidden-way
Show hidden files in OSX Finder
Open the Terminal and type or copy/paste:
defaults write com.apple.finder AppleShowAllFiles -bool true
Reverting to the default of NOT showing hidden files:
defaults write com.apple.finder AppleShowAllFiles -bool false
*Restart or Force Quit Finder required to take effect.*
http://www.apple.com/downloads/dashboard/developer/hiddenfiles.html
Or better yet...
Solving Trash Problems...
http://thexlab.com/faqs/trash.html -
POR which contains rejection from vendor causes errors in the EBP
Hi @all,
are there a solution within SRM 5.0 & EBP 3.5 that PORs that containing rejections from the vendor regarding a PO doesn't run into errors within the EBP. Thats not covered by the POR workflows as far as I know.
Probably someone knows more...
Thanks for a reply.
StefanDear Poster,
As no response has been provided to the thread in some time I must assume the issue is resolved, if the question is still valid please create a new thread rephrasing the query and providing as much data as possible to promote response from the community.
Best Regards,
SDN SRM Moderation Team -
Switch from Qwest causing errors
I have an AEBS (802.11n) that worked just fine until I switched ISPs yesterday. I had Qwest Actiontec DSL modem/router --> AEBS --> Airport Express (extend network, airtunes, usb printer). Yesterday I switched from Qwest to an ISP that installs a microwave antennae and runs with static IP directly into my AEBS (no modem). The technician couldn't get it to work. Said something about AEBS not storing the static IP, but resorting to the DHCP IP info it was using with Qwest. We finally got it working (kind of) by running through my Vonage Motorola router, then into the AEBS. Any ideas what could be going on here?
Hi Rich,
They are Hidden files.
Show Hidden Files 1.0...
http://www.macupdate.com/app/mac/29096/show-hidden-files
Hidden Way is a toggle for hidden files view in Finder...
http://www.macupdate.com/app/mac/25716/hidden-way
Show hidden files in OSX Finder
Open the Terminal and type or copy/paste:
defaults write com.apple.finder AppleShowAllFiles -bool true
Reverting to the default of NOT showing hidden files:
defaults write com.apple.finder AppleShowAllFiles -bool false
*Restart or Force Quit Finder required to take effect.*
http://www.apple.com/downloads/dashboard/developer/hiddenfiles.html
Or better yet...
Solving Trash Problems...
http://thexlab.com/faqs/trash.html -
How to generate multiple records on a single sql from dual table
I wanted to generate ten sequence nos in a single sql statement from dual table.
Is there any way to use that.
I think somebody can help me on this by using level clauseI'm not 100% sure if I understand your requirement: Do you really want to use an Oracle Sequence, as Alex already demonstrated?
Or just a 'one-time-bunch-of-sequential-numbers'.
In the latter case you can just select level:
SQL> select level
2 from dual
3 connect by level <= 10;
LEVEL
1
2
3
4
5
6
7
8
9
10
10 rows selected.
Maybe you are looking for
-
ACS 5.1 "Launch Monitoring & Report Viewer" not working
I'm trying to view the logs on the ACS server via the web interface. When I click on "Launch Monitoring & Report Viewer", it opens a new window and I get the error "cannot display the webpage". This happens on both Firefox and IE. The URL it's try
-
i bought an itunes card - loaded on my ipod touch - it shows the $ is there but will not let me buy anything - says I need a verification - I don't know what to verify.... Can you please help?
-
I recently upgraded to Yosemite but I can not locate the photos app. It is not in finder - where do I look for it?
-
No Webcam in Player 10.0.32.18?
Hi, I noticed I can't see my webcam anymore when I publish an exe file. There comes no dialog and I can't see the webcam picture. I even can't click the Preferences menu in the context menu. Any Ideas what that is? TIA
-
Hi All, I am getting a file from Legacy. I want to send this to SAP. So I have imported my IDOC into XI. Now in my IDOC I have three segements. In the second segment I have three fields. This three fields are mapped from File. Now if any one of the f