ORACLE Spread Table problem !
Please help me !
Whenever my form call the method "Connect" or "Query" of the Oracle Spread Table, the form runtime immediately quit without any warning or error message !!
I've tried it on some different PCs and still receive the same result !
What is the problem?
Do these methods require something else which I don't know?
DungDNA.
Yes it have a connection method, the problem here is that this control returns a SCODE value, and i don't know where it is specified to return variables.
Database Methods
SCODE Connect(BSTR* database, BSTR* user, BSTR* password, long options);
Connect to the given database as the given user. options determines
the type of database connection. See Appendix A: Database Connection Types
for more information. If the connection fails, Connect will return S_FALSE
Similar Messages
-
Problem w/ Oracle Spread Table Control Properties -
Dear Contributors:
I'm using Developer 6i. In an attempt to use Oracle Spread Table Control, I've inserted the right ActiveX in my Form and imported associated OLE library interfaces. However, when I went to inspect and change properties 2 of the tab pages titled
1) Special and
2) User Actions
showed 'MMTX32' Caution Alert w/ a message of:
"An ussupported operation was attempted."
Any suggestion friends?Yes it have a connection method, the problem here is that this control returns a SCODE value, and i don't know where it is specified to return variables.
Database Methods
SCODE Connect(BSTR* database, BSTR* user, BSTR* password, long options);
Connect to the given database as the given user. options determines
the type of database connection. See Appendix A: Database Connection Types
for more information. If the connection fails, Connect will return S_FALSE -
Where can I change the buffer size for LKM File to Oracle (EXTRENAL TABLE)?
Hi all,
I'd a problem on the buffer size the "LKM File to Oracle (EXTRENAL TABLE)" as follow:
2801 : 72000 : java.sql.SQLException: ORA-12801: error signaled in parallel query server P000
ORA-29913: error in executing ODCIEXTTABLEFETCH callout
ORA-29400: data cartridge error
KUP-04020: found record longer than buffer size supported, 524288, in D:\OraHome_1\oracledi\demo\file\PARTIAL_SHPT_FIXED_NHF.dat
Do you know where can I change the buffer size?
Remarks: The size of the file is ~2Mb.
TaoHi,
The behavior is explained in Bug 4304609 .
You will encounter ORA-29400 & KUP-04020 errors if the RECORDSIZE clause in the access parameters for the ORACLE_LOADER access driver is larger than 10MB and you are loading records larger than 10MB. Which means their is a another limitation on read size of a record which is termed as granule size. If the default granule size is less then RECORDSIZE it limits the size of the read buffer to granule size.
Use the pxxtgranule_size parameter to change the size of the granule to a number larger than the size specified for the read buffer.You can use below query to determine the current size of the granule.
SELECT KSPFTCTXPN PARAMETER_NUMBER,
KSPPINM PARAMETER_NAME,
KSPPITY PARAMETER_TYPE,
KSPFTCTXVL PARAMETER_VALUE,
KSPFTCTXDF IS_DEFAULT,
KSPPIFLG MODIFICATION_FLAG,
KSPFTCTXVF VALUE_FLAG
FROM X$KSPPI X, X$KSPPCV2 Y
WHERE (X.INDX+1) = KSPFTCTXPN AND
KSPPINM LIKE '%_px_xtgranule_size%';
There is no 'ideal' or recommended value for pxxtgranule_size parameter, it is safe to increase it to work around this particular problem. You can set this parameter using ALTER SESSION/SYSTEM command.
SQL> alter system set "_px_xtgranule_size"=10000;
Thanks,
Sutirtha -
Insert and update tables from SQL server to oracle database tables
Hi,
I am having problem while update data from sql server to oracle database tables.
I am doing one way insert +updates that is from SQL Server tables ==> Oracle database tables
I am using tools Sql server Integration service. I can insert data from sql server to oracle but update can't. Please help me how can I update + insert from sql server to oracle database tables easily.
Thanks in advance.Hi,
What about using Oracle SQL Developer for migration
http://www.oracle.com/technetwork/database/migration/sqlserver-095136.html
HTH -
Oracle Database Table data Load it into Excel
Hello All,
Please I need your help for this problem:
I need to load Oracle database Table data and load it into Excel and saved with xls format.
Example -Select * from Slase data load it into the Excel.
I appreciate ans sample code to help me do that, Please help me out. This is very urgent.
Thanks alot and best regards,
anbu>
I need to load Oracle database Table data and load it into Excel and saved with xls format.
Example -Select * from Slase data load it into the Excel.
I appreciate ans sample code to help me do that, Please help me out. This is very urgent.
>
Nothing in these forums is 'urgent'. If you have an urgent problem you should contact Oracle support or hire a consultant.
You have proven over and over again that you are not a good steward of the forums. You continue to post questions that you say are 'urgent' but rarely take the time to mark your questions ANSWERED when they have been.
Total Questions: 90 (78 unresolved)
Are you willing to make a commitment to to revisit your 78 unresolved questions and mark them ANSWERED if they have been?
The easiest way to export Oracle data to Excel is to use sql developer. It is a free download and this article by Jeff Smith shows how easy it is
http://www.thatjeffsmith.com/archive/2012/09/oracle-sql-developer-v3-2-1-now-available/
>
And One Last Thing
Speaking of export, sometimes I want to send data to Excel. And sometimes I want to send multiple objects to Excel – to a single Excel file that is. In version 3.2.1 you can now do that. Let’s export the bulk of the HR schema to Excel, with each table going to it’s own workbook in the same worksheet.
>
And you have previously been ask to read the FAQ at the top of the thread list. If you had done that you would have seen that there is a FAQ for links that have many ways, with code, to export data to Excel.
5. How do I read or write an Excel file?
SQL and PL/SQL FAQ -
ODI - IKM Oracle Multi Table Insert
Hi All,
I am new to ODI, i tried to use "IKM Oracle Multi Table Insert", one interface generates query like
insert all
when 1=1 then
into BI.EMP_TOTAL_SAL
*(EMPNO, ENAME, JOB, MGR, HIREDATE, TOTAL_SAL, DEPTNO)*
values
*(C1_EMPNO, C2_ENAME, C3_JOB, C4_MGR, C5_HIREDATE, C6_TOTAL_SAL, C7_DEPTNO)*
select
C1_EMPNO EMPNO,
C2_ENAME ENAME,
C3_JOB JOB,
C4_MGR MGR,
C5_HIREDATE HIREDATE,
C6_TOTAL_SAL TOTAL_SAL,
C7_DEPTNO DEPTNO
from BI.C$_0EMP_TOTAL_SAL
where (1=1)
because of alias this insert fails. Could you please anyone explain what exactly happens and how to control the query genration?
Thanks & Regards
M ThiyaguWhat David is asking is for you to go to operator and review the failed task, copy the SQL and paste it up here, run the SQL in your sql client (Toad / SQL Developer) and try and ascertain what objects your missing causing your SQL Error.
Have you followed the link posted above? Have you placed the interfaces in a package in the right order? Are you running the package as a whole or individual interfaces? I dont think the individual interfaces will work with this IKM as its designed for one to feed the other.
Please detail the steps you've taken, how many interfaces you have and what options you have chosen in the IKM options for each interface - Its tricky to diagnose your problem and when you say "I can't understand what to do and how to do...
So please give the step wise solution to do that interface.. or please give with an example.." it means a lot of people will ignore your post as we cant see any evidence of you trying!
p.s I see you have resurected a thread from 2009 - 1) I dont think the multi-table insert KM was available with ODI at that time (10G) 2) The thread is answered / closed so not many people will look at it 3) Proceedurs should only really be used when you cant do it with an interface, you lose all the lovely lineage between objects with you get with an interface.
Hope this helps - please post your setup , your error and how you have configured the interfaces and package so far. -
HOWTO Transfer Oracle Database Tables to SAP
hi
I need to import some Oracle Database Tables to the SAP Dictionary, i was wondering that id there is a short way to do this. If there is a progrm to be written then could any one send me the code.
And if there is another way then plz do guide me.
Thanx in Advance.
ZahidDear vasmi VaraPrasad!
I am grateful for ur time. I perfectly understand the logic you told me.
Now let me tell you what i have done so for in this regard by doing some googling and with the help of my respected teacher.
I made a connection entry in the DBCON table and specify all required things
like
NAME = MYCONNECTION
DBMS = ORA
USER = SABRO <my db user>
PASSword = *********/********* <my db password>
INFO = FIRS <TNS Name to my db>
afte that i tried the following code.
===========================================
REPORT Z_DB_1 .
*Declaration
DATA: WA TYPE <SAP_TABLE>.
Init connection
EXEC sql.
connect to 'MYCONNECTION' as 'MYDB'
ENDEXEC.
Open connection
EXEC sql.
SET CONNECTION 'MYDB'
ENDEXEC.
Do your trick
EXEC sql PERFORMING your_form.
SELECT * INTO :WA FROM <DB_TABLE>.
ENDEXEC.
Stop connection
EXEC sql.
disconnect 'MYDB'
ENDEXEC.
FORM your_form.
WRITE: / wa-deptno, wa-dname, wa-loc.
ENDFORM.
======================================================
now when i run this program it terminates with a runtime error that is:
"An error occured while setting up a connection to MYCONNECTION".
This seems that there is some problem with the connection i don't know how to figure out what is wrong with this connection.
I think the problem is that SAP does not know the TNSNAMES file, or there might be some environment variables to be set so that SAP recognize or read that TNS NAME "FIRST".
Regards
Zahid Kareem. -
Hii...Experts..
How can I load data from a single source table to multiple target tables using IKM oracle multi table insert ???
Please help me with an example.
RegardsWhat David is asking is for you to go to operator and review the failed task, copy the SQL and paste it up here, run the SQL in your sql client (Toad / SQL Developer) and try and ascertain what objects your missing causing your SQL Error.
Have you followed the link posted above? Have you placed the interfaces in a package in the right order? Are you running the package as a whole or individual interfaces? I dont think the individual interfaces will work with this IKM as its designed for one to feed the other.
Please detail the steps you've taken, how many interfaces you have and what options you have chosen in the IKM options for each interface - Its tricky to diagnose your problem and when you say "I can't understand what to do and how to do...
So please give the step wise solution to do that interface.. or please give with an example.." it means a lot of people will ignore your post as we cant see any evidence of you trying!
p.s I see you have resurected a thread from 2009 - 1) I dont think the multi-table insert KM was available with ODI at that time (10G) 2) The thread is answered / closed so not many people will look at it 3) Proceedurs should only really be used when you cant do it with an interface, you lose all the lovely lineage between objects with you get with an interface.
Hope this helps - please post your setup , your error and how you have configured the interfaces and package so far. -
Load from EBCDIC file to Oracle 9i tables using UTL_FILE
Hello, I have a requirement to load EBCDIC file from Mainframe to load to Oracle 9i tables and then do some transformation. Then again create EBCDIC file from database table. I'm not sure if this is possible using UTL_FILE, though i have seen people loading using SQL * Loader. If possible, can you please give some sample code for this? I would appreciate your help
Thanks
KarunaHi,
I'm reading data from EBCDIC file in Oracle PL/SQL using UTL_FILE. I wasn't able to read BINARY data type from EBCDIC to Oracle. Initially i thought the problem was due to the following reasons discussed in the article.
http://support.sas.com/techsup/technote/ts642.html
<quote>
Solutions
The only way to overcome the problem of non-standard numeric data being corrupted by the FTP is to move the data without translating it. This will necessitate making some significant changes in your program. It may also require preprocessing the data file on the mainframe. The sections below list the different types of files and situations, a recommended approach to read in the file, and a sample program to accomplish the task.
</quote>
But we have confirmed that the contents of EBCDIC file is fine by looking into the EBCDIC file using a tool that will convert EBCDIC to ASCII. The contents are absolutely ok.
Now how do i read the Binary data from EBCDIC file.
My code is like this...
Open the file using UTL_FILE.FOPEN
UTL_FILE.GET_LINE(file_handler,string,lengthofthestring)
DBMS_OUTPUT.PUT_LINE(SUBSTR(CONVERT(string,ASCIIUS7,EBCDIC),1,4));
--This is generating an output as "&". The actual data is
--005. Since this is
--declared as binary in EBCDIC file, I'm unable to read
--and print it.
--same is the case with other binary data types.
--I'm able to read the other datatypes clearly
UTL_FILE.FCLOSE.
How do I resolve this? I would appreciate your help on this. This is something critical and immediate requirement for us.
Thanks
Karuna -
Regarding the Usage of oracle external tables.
HI All,
I am using POI API for generating Oracle external tables. If that excel sheet is having empty sheets then its throwing null pointer exception. Can anybody help me out in resolving this problem.
Thanks and Regards,
VenkyDo you use the technique described by Casimir Saternos in this OTN article?
Generate External Tables from an Excel Spreadsheet Using Apache Jakarta POI
http://www.oracle.com/technology/pub/articles/saternos_tables.html -
Multi-record / spread table...moveable fields in designer generated form
Good morning all;
I hope you are doing good...
Imagine a multi-record block layout with it's overflow property set to spread-table to accomodate 10 varchar2(25) fields. Now, of the hundreds of users working with this generated form, not one of them wants to see the fields in the same order on the screen.
What i would like to do is generate the form from designer so that a user could 'drag'n drop' let say, field #10 to the field #2 spot on the screen. Something like windows explorer where you can move the 'Size' column around so it is viewable without having to use the spread-table bar at the bottom of the screen...
Any idea on how to generate this form from designer?
Thank you and wish me luck!I don't know a solution, but I think a solution could be easier found if it was a read-only block. You did not specify that. Then maybe you could dynamically change the query behind the block.
Good luck, Paul. -
Hi Everyone,
My Jdev version is 11.1.2.3.0.
I have developed many ADF applications in this version itself by setting time zone as -Duser.timezone="+05:30" and all were running fine.
But Jdeveloper got crashed so i reinstalled the same version but now none of the applications are running.
Its showing error as below:
oracle.jbo.JboException: JBO-29112: The time zone 'GMT+05:30' defined in adf-config.xml or TimeZone.getDefault().getID() does not exist in your Oracle database table V$TIMEZONE_NAMES. Please set an available time zone in your TZ environment variable or user.timezone Java system property.
What to do now?
how will i know wat time zone should be set?
please help the needful...
Thanks.Check if www.jobinesh.com/2010/12/why-do-i-get-oraclejbojboexception-jbo.html helps.
Timo -
How to import the data in a .xls or .xlsx file into a oracle database table
Hi,
Please tell me how to import the data in a .xls or .xlsx file into a oracle database table in Oracle 10gR2 using Oracle Warehouse Builder 10gR2.....can we do something through Non-Oracle->ODBC?Yes, it is possible, look at this thread
[SQLServer access from AIX Warehouse builder|http://forums.oracle.com/forums/thread.jspa?messageID=2502982]
If your server (with target DB and OWB runtime) is on Windows OS this configuration will be simpler - you can use single server.
And additional link on OWB blog (with 11g transparent gateway)
[http://blogs.oracle.com/warehousebuilder/2008/01/11g_heterogeneous_agent.html]
(configuring nonoracle connection with 10g generic connectivity very similar to 11g gateway)
Also look at
http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:4406709207206#18830681837358
Regards,
Oleg -
Fastest way to load csv into oracle BE table
I have csv file which is having 10 million records in it . what is the fastest approach to load this data to oracle BE table .
I am using Oracle9i Enterprise Edition Release 9.2.0.7.0 - 64bit Production With the Partitioning, OLAP and Oracle Data Mining options .
csv format
first_name,last_name,occupation,address
above all the fields are of varchar data type.
I have tried to use external table while inserting its taking too much time .
Thankshi,
You can use sql loader.
options (skip=1)
LOAD DATA
INFILE 'csv file path'
truncate /append
INTO table table_name
FIELDS TERMINATED BY ','
OPTIONALLY ENCLOSED BY '"'
trailing nullcols
column name ,
column name,
column name
{code}
Create this file as ctl(control file.) on the lcoation where your csv file is.
Execute it by goint to the path where your csv file resides.
{code}
cmd
cd path where your csv file resides
sqllder userid=username/password@database name control=your_control_file_name
{code} -
hi
can any body help me?
i have installed oracle developer 10g with oracle 8i database
when i run any form including the test.fmx
it always ask to install JInitiator although it has been installed (appears in the control panel and in c:\program file\oracle folder)
another problem appears after completing the installtion of JInitiator
the browser views the HTML tags of the form not execute it
so does any body have any idea???From the Windows Start menu, choose Run, type regedit, and click OK.
Expand the registry nodes HKEY_LOCAL_MACHINE > SOFTWARE > ORACLE.
Make a backup copy of this key by right-clicking it and selecting Export from the context menu.
Select one of the HOME nodes beneath the ORACLE node (the one for Developer Suite). Ensure that you have opened the correct node by verifying that the key FORMS90_PATH exists in that node.
From the Registry Editor menu, select Edit > New > String Value. Type in the name FORMS90_HIDE_OBR_PARAMS.
Double-click FORMS90_HIDE_OBR_PARAMS and in the Value data field enter false, then click OK.
Close the registry editor.
Now when you run a form from Forms Builder, it should show parameters, including userid, in the URL, but it should run fine.
15. Set the path for Forms Builder to locate icons:
a) Double-click the UI_ICON key to open it for editing.
b) For the value data, append the path to the .gif file that you will use for the
button icon, which is the \icons subdirectory of your lab directory. Separate this
path from the remainder of the string with a semicolon; for example:
;e:\labs\lab\icons, then click OK.
Maybe you are looking for
-
Satellite Pro A10 - no response - HDD input#0 Error
Pro A10 Out of warranty, student daughter reports laptop no longer working, previously hanging and finally no response from any other LEDs when DC input from charger is connected. Cleaned out fan/heat sink, lots of fluff etc removed. No obvious signs
-
It prints from a Dell laptop and a Tobshiba laptop but not from my Mac
-
I want to transfer my books into new account
I bought nook and wanted to download my books. When I want to enter Adobe Digital Editons. It said me you cannot enter this account ext. And I created another account with my second e-mail address. But when I wanted to transfer my ebook it said me t
-
What is the Business Object of the BAPI "BAPI_MATERIAL_SAVEDATA"
Hi guys, I am unable to find the related Business Obejct of the BAPI -* 'BAPI_MATERIAL_SAVEDATA'*. I don't know if this FM has been integrated as an method in SWO1. Please tell me if anyone knows the related business object of this FM and how to find
-
Barcode sample couldnot run in 9ias
barcode sample couldnot run in 9ias Oraclebarcode.jar Doesn't work on webserver I have downloaded the example on how to print a barcode using the oraclebarcode.jar in 9i. It works on my local install of the reportserver(devloper9i), but when I move i