Import MPD in Oracle
Hi all,
is it possible to import MPD files into Oracle? (I think it is the Microsoft Project's MPD).
Thanks, Tamas
Hi
MPD stands for Microsoft Project Database
Heard that Oracle supports this format, but never tried.
Thank You
Similar Messages
-
Import error on Oracle Database Express 10.2.0.1.0
Hi,
I try to import data from oracle V10.01.02 running on SUSE10 Linux to
oracle 10g (10.1.0.2.0) running on Windows Server 2003.
I am able to import the big part from my ata, but not all data.
The begin of my log file is:
Connected to: Oracle Database 10g Enterprise Edition Release 10.1.0.2.0
- Production
With the Partitioning, OLAP and Data Mining options
Export file created by EXPORT:V10.01.00 via conventional path
And after some time I receive:
IMP-00019: row rejected due to ORACLE error 12899
IMP-00003: ORACLE error 12899 encountered
ORA-12899: value too large for column "SAFCI"."EMP"."NAME"
(actual: 65, maximum: 64)
Column 1 1000005025
Column 2 ??????? ???????
Column 3 19-SEP-2002:00:00:00
Column 4 9089
Column 5 ??. ?????
Column 6 1.9828
Column 7 377.77
Column 8 75.55
Column 9 ???????????? ???????? ? ??? ???? ? 32 ??.
Column 10 19-SEP-2002:00:00:00
Column 11 ?????? ?????, ?.?. 172747675, ???. 23.11.200?
Column 12 ????????? ?????????
Column 13 ? ????
Column 14 T
Column 15
Column 16 F
IMP-00019: row rejected due to ORACLE error 12899
IMP-00003: ORACLE error 12899 encountered
ORA-12899: value too large for column "SAFCI"."EMP"."NAME"
(actual: 65, maximum: 64)
Column 1 1000006408
Column 2 ??????? ???????
Column 3 05-NOV-2002:00:00:00
Column 4 9089
Column 5 ??. ?????
Column 6 1.939
Column 7 82
Column 8 16.4
Column 9 ?????????? ? ???? ???? ? 40 ??.
Column 10 05-NOV-2002:00:00:00
Column 11 ?????? ?????, ?.?. 172747675, ???. 23.11.200?
Column 12 ????????? ?????????
Column 13 ? ????
Column 14 T
Column 15
Column 16 F 36943 rows imported
I can not understand this problem, because I exported the hole user and
also try to import the hole user in my new system.
Pls., can some one point me to some paper about this problem or help me
to solve the problem.
Thanks
configuration Oracle10g (EXP source)
SQLWKS> select * from nls_database_parameters
2>
PARAMETER VALUE
NLS_LANGUAGE BRAZILIAN PORTUGUESE
NLS_TERRITORY BRAZIL
NLS_CURRENCY R$
NLS_ISO_CURRENCY BRAZIL
NLS_NUMERIC_CHARACTERS ,.
NLS_CHARACTERSET WE8ISO8859P1
NLS_CALENDAR GREGORIAN
NLS_DATE_FORMAT DD/MM/RR
NLS_DATE_LANGUAGE BRAZILIAN PORTUGUESE
NLS_SORT WEST_EUROPEAN
NLS_TIME_FORMAT HH24:MI:SSXFF
NLS_TIMESTAMP_FORMAT DD/MM/RR HH24:MI:SSXFF
NLS_TIME_TZ_FORMAT HH24:MI:SSXFF TZR
NLS_TIMESTAMP_TZ_FORMAT DD/MM/RR HH24:MI:SSXFF TZR
NLS_DUAL_CURRENCY Cr$
NLS_COMP BINARY
NLS_LENGTH_SEMANTICS BYTE
NLS_NCHAR_CONV_EXCP FALSE
NLS_NCHAR_CHARACTERSET AL16UTF16
NLS_RDBMS_VERSION 10.1.0.2.0
configuration Oracle10g Express (IMP destination)
SQL> select * from nls_database_parameters;
PARAMETER VALUE
NLS_LANGUAGE AMERICAN
NLS_TERRITORY AMERICA
NLS_CURRENCY $
NLS_ISO_CURRENCY AMERICA
NLS_NUMERIC_CHARACTERS .,
NLS_CHARACTERSET AL32UTF8
NLS_CALENDAR GREGORIAN
NLS_DATE_FORMAT DD-MON-RR
NLS_DATE_LANGUAGE AMERICAN
NLS_SORT BINARY
NLS_TIME_FORMAT HH.MI.SSXFF AM
NLS_TIMESTAMP_FORMAT DD-MON-RR HH.MI.SSXFF AM
NLS_TIME_TZ_FORMAT HH.MI.SSXFF AM TZR
NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI.SSXFF AM TZR
NLS_DUAL_CURRENCY $
NLS_COMP BINARY
NLS_LENGTH_SEMANTICS BYTE
NLS_NCHAR_CONV_EXCP FALSE
NLS_NCHAR_CHARACTERSET AL16UTF16
NLS_RDBMS_VERSION 10.2.0.1.0Hi
Your import database use a multibyte characterset, your export db a singlebyte cs.
This means, a char can need more than 1 byte.
Try this before import (and before create tables!!):
alter system set nls_length_semantics=char;Greetings
Sven -
Error while importing tables from oracle database
Hi
I am getting the following error when i am trying to import table from oracle database.
my operating system is windows and my database is oracle.
[nQSError: 16001]ODBC error state: IM004 code:0 message:
[Microsoft][ODBC Driver Manager] Driver`s SQLAllocHandle on SQL_HANDLE_ENV failed.
please help me in resolving this issue.
Thanks and Regards,
RajHi Madan,
I have done migration Discoverer Admin EUL Layer into OBIEE repository using below methodology.
Navigate to the <installdrive>\OracleBI\server\Bin directory. There are two important files in this directory: the migration assistant executable file named MigrateEUL.exe and a properties configuration file named MigrationConfig.properties.
Could you please help me how to migrate discoverer plus workbooks and worksheets into OBIEE Answers?
go through below link, It will show navigation steps for migrating of EUL from Discoverer to OBIEE.But i need migration of workbooks and worksheets from Discoverer into OBIEE Answers.
http://www.oracle.com/technology/obe/obe_bi/discoverer/discoverer_1012/discomigration/migrate_disco_biee.htm
This is very great full help to me …
Advance thanks for your suggestions.
Regards
Duraga Prasad. -
Problem in importing data in oracle 10g from 9i backup
Hi ,
Am trying to import data in oracle 10g..but it does not importing constraints, and stop doing anything by the msg.
About to enable constraints.....
after this msg it does not work.
plz help,
Regards,
NehaHi Neha,
You have a lot of options. I'll supose you can test first, and you're using an export file.
First forget about the data, think in your database structure. So you can do this:
exp userid=... file=exp_norows.dmp full=y rows=n statistics=none
Now you have the structure of your database. Create the database, in 10g, empty, check you have all filesystem, etc. for you new datafiles. And do the import with parameter ignore=y, you'll see a lot off errors on SYSTEM schema, don't worry about it.
Now you have the structure of you database in 10g. You can take a look in the import log file, looking for some possible errors come from your schemas. so check the objects, and check the schemas.
Bear in mind things like CONNECT role in 9i it's different in 10g, you can't create db_links in 10g with "IDENTIFIED BY VALUES" because you'll get an ORA-00600, etc.
Well, fix all problems on source database (9i) and repeate this procedure until you don't recieve any more errors (not a SYSTEM schema errors).
When you have everything solved, you can try to import the data.
I hope, this method can help you. If you have any problem do not hesitate to ask me.
John Ospino Rivas -
Hi All,
I`m using this script to import TXT to oracle table.
create table test (
pol_no varchar2(10)
organization external (
type oracle_loader
default directory ri_data_dir
access parameters (
nobadfile
fields terminated by ',')
location ('policyno_20080229.TXT')
reject limit unlimited
but when i select * from test ;
ODCIEXTTABLEOPEN calloutfunny, that you get that short error. I get:
select * from test
ERROR at line 1:
ORA-29913: error in executing ODCIEXTTABLEOPEN callout
ORA-29400: data cartridge error
KUP-00554: error encountered while parsing access parameters
KUP-01005: syntax error: found "nobadfile": expecting one of: "column, debug, exit, fields, records"
KUP-01007: at line 1 column 1
ORA-06512: at "SYS.ORACLE_LOADER", line 19
ORA-06512: at line 1so, remove the unknown word "nobadfile", and it works fine. thank god that I have the verbose error handler! -
Import error from oracle 10.1.0 to oracle 10. 2.0
Hi
I am importing schema from oracle 10.1.0 to oracle 10.2.0.
my all objects are imported successfully except foreign key constraints.
my error are like
IMP-00003: ORACLE error 20001 encountered
ORA-20001: Invalid or inconsistent input values
ORA-06512: at "SYS.DBMS_STATS", line 5167
ORA-06512: at line 1
IMP-00017: following statement failed with ORACLE error 20001:
"DECLARE SREC DBMS_STATS.STATREC; BEGIN SREC.MINVAL := NULL; SREC.MAXVAL :="
" NULL; SREC.EAVS := 0; SREC.CHVALS := NULL; SREC.NOVALS := DBMS_STATS.NUMAR"
"RAY(0,0); SREC.BKVALS := DBMS_STATS.NUMARRAY(0,1); SREC.EPC := 2; DBMS_STAT"
"S.SET_COLUMN_STATS(NULL,'"PRODUCT_MASTER"','"PRODUCTID"', NULL ,NULL,NULL,0"
",0,0,srec,0,6); END;"
IMP-00003: ORACLE error 20001 encountered
ORA-20001: Invalid or inconsistent input values
ORA-06512: at "SYS.DBMS_STATS", line 4194
ORA-06512: at line 1
IMP-00017: following statement failed with ORACLE error 20001:
"DECLARE SREC DBMS_STATS.STATREC; BEGIN SREC.MINVAL := NULL; SREC.MAXVAL :="
" NULL; SREC.EAVS := 0; SREC.CHVALS := NULL; SREC.NOVALS := DBMS_STATS.NUMAR"
"RAY(0,0); SREC.BKVALS := DBMS_STATS.NUMARRAY(0,1); SREC.EPC := 2; DBMS_STAT"
"S.SET_COLUMN_STATS(NULL,'"PRODUCT_MASTER"','"PRODUCT_CODE"', NULL ,NULL,NUL"
"L,0,0,0,srec,0,6); END;"
IMP-00003: ORACLE error 20001 encountered
ORA-20001: Invalid or inconsistent input values
ORA-06512: at "SYS.DBMS_STATS", line 4194
ORA-06512: at line 1
IMP-00017: following statement failed with ORACLE error 20001:
"DECLARE SREC DBMS_STATS.STATREC; BEGIN SREC.MINVAL := NULL; SREC.MAXVAL :="
" NULL; SREC.EAVS := 0; SREC.CHVALS := NULL; SREC.NOVALS := DBMS_STATS.NUMAR"
"RAY(0,0); SREC.BKVALS := DBMS_STATS.NUMARRAY(0,1); SREC.EPC := 2; DBMS_STAT"
"S.SET_COLUMN_STATS(NULL,'"PRODUCT_MASTER"','"PRODUCT_NAME"', NULL ,NULL,NUL"
"L,0,0,0,srec,0,6); END;"
IMP-00003: ORACLE error 20001 encountered
ORA-20001: Invalid or inconsistent input values
ORA-06512: at "SYS.DBMS_STATS", line 4194
ORA-06512: at line 1
IMP-00017: following statement failed with ORACLE error 20001:
"DECLARE SREC DBMS_STATS.STATREC; BEGIN SREC.MINVAL := NULL; SREC.MAXVAL :="
" NULL; SREC.EAVS := 0; SREC.CHVALS := NULL; SREC.NOVALS := DBMS_STATS.NUMAR"
"RAY(0,0); SREC.BKVALS := DBMS_STATS.NUMARRAY(0,1); SREC.EPC := 2; DBMS_STAT"
"S.SET_COLUMN_STATS(NULL,'"PRODUCT_MASTER"','"SHORT_DESC"', NULL ,NULL,NULL,"
"0,0,0,srec,0,6); END;"
IMP-00003: ORACLE error 20001 encountered
ORA-20001: Invalid or inconsistent input values
ORA-06512: at "SYS.DBMS_STATS", line 4194
ORA-06512: at line 1
IMP-00017: following statement failed with ORACLE error 20001:
"DECLARE SREC DBMS_STATS.STATREC; BEGIN SREC.MINVAL := NULL; SREC.MAXVAL :="
" NULL; SREC.EAVS := 0; SREC.CHVALS := NULL; SREC.NOVALS := DBMS_STATS.NUMAR"
"RAY(0,0); SREC.BKVALS := DBMS_STATS.NUMARRAY(0,1); SREC.EPC := 2; DBMS_STAT"
"S.SET_COLUMN_STATS(NULL,'"PRODUCT_MASTER"','"DESCRIPTION"', NULL ,NULL,NULL"
",0,0,0,srec,0,6); END;"
IMP-00003: ORACLE error 20001 encountered
ORA-20001: Invalid or inconsistent input values
ORA-06512: at "SYS.DBMS_STATS", line 4194
ORA-06512: at line 1
IMP-00017: following statement failed with ORACLE error 20001:
"DECLARE SREC DBMS_STATS.STATREC; BEGIN SREC.MINVAL := NULL; SREC.MAXVAL :="
" NULL; SREC.EAVS := 0; SREC.CHVALS := NULL; SREC.NOVALS := DBMS_STATS.NUMAR"
"RAY(0,0); SREC.BKVALS := DBMS_STATS.NUMARRAY(0,1); SREC.EPC := 2; DBMS_STAT"
"S.SET_COLUMN_STATS(NULL,'"PRODUCT_MASTER"','"PRODUCTLIMG"', NULL ,NULL,NULL"
",0,0,0,srec,0,6); END;"
IMP-00003: ORACLE error 20001 encountered
ORA-20001: Invalid or inconsistent input values
ORA-06512: at "SYS.DBMS_STATS", line 4194
ORA-06512: at line 1
IMP-00017: following statement failed with ORACLE error 20001:
"DECLARE SREC DBMS_STATS.STATREC; BEGIN SREC.MINVAL := NULL; SREC.MAXVAL :="
" NULL; SREC.EAVS := 0; SREC.CHVALS := NULL; SREC.NOVALS := DBMS_STATS.NUMAR"
"RAY(0,0); SREC.BKVALS := DBMS_STATS.NUMARRAY(0,1); SREC.EPC := 2; DBMS_STAT"
"S.SET_COLUMN_STATS(NULL,'"PRODUCT_MASTER"','"PRODUCTMIMG"', NULL ,NULL,NULL"
",0,0,0,srec,0,6); END;"
IMP-00003: ORACLE error 20001 encounteredthanksyou can import the stats with importing objects , you can pass parameter STATISTICS =none ( do not import the stats).
STATISTICS -- import precomputed statistics (always)
Try this.
--Girish -
Import Functionality in Oracle ADF BC with Jdeveloper 11.1.1.2
Hi all,
I am using Jdeveloper 11.1.1.2 and I am trying to import functionality in my application.
I am following the steps of: http://andrejusb.blogspot.com/2008/07/import-functionality-in-oracle-adf-bc.html
I have 2 data model and I would like to import the functionality of one data model, in the other.
My problem is when I tried: myModel2-->right click-->project properties-->deployment-->edit
I don't see nothing to filter myModel2, I see only Library Dependencies, Connections, JAR Options ADF Validation.
If I tried : myModel2-->right click-->project properties-->deployment-->new-->filters
I see only the folders: Merged Contents of this file Group's contributor, .data, 00000000
But I can't see the folders I have (mypackage.test.model.entities).
Where I can found them? Is there a workaround?
Any suggestions?
Thanks
AndreaOk, but I taught that after importing myModel2 in myModel1, Jdeveloper realise a merge and it visualizes a unique package, even if it is splitted on two or more projects/models.
So that, it seems to me this procedure is useful for importing jar file, but not for splitting a very big project in a lot of smaller projects, doesn't it?
Thanks for your opinion
Andrea -
Guide me for exporting and importing data from oracle 10g to oracle 9i
I have been trying export and import options in oracle but m not very clear about the procedure..
Also when i am logging in as Scott/tiger i am facing an error
ORA 1542 - tablespace 'USER' is offline and cannot allocate space in it.how to resolve itHello,
I see two questions.
ORA 1542 - tablespace 'USER' is offline and cannot allocate space in it.how to resolve it About the error ORA-01542 you have to bring the Tablespace USERS online:
http://www.error-code.org.uk/view.asp?e=ORACLE-ORA-01542
If you cannot bring it online you may have to Recover it first.
I have been trying export and import options in oracle but m not very clear about the procedure..About the Export in 10g and Import in 9i (9.2 or 9.0.1 ?), you have to export with the Export utility of the Target Database (the lowest Database version here: 9.0.1 or 9.2) then, you have to Import to the Target Database using its Import utility (in 9.0.1 or 9.2).
The following Note of MOS may guide you:
Compatibility Matrix for Export And Import Between Different Oracle Versions [Video] [ID 132904.1]
NB: You cannot use here the DATAPUMP.
Hope this help.
Best regards,
Jean-Valentin -
How to run import from Unix Oracle 8.0.5 database with Windows Oracle client?
How to run import from Unix Oracle 8.0.5 database via network with Windows Oracle client? Is it possible? When I try to do it Oracle client just hangs... If not which ones are compatible Aix or Solaris to Unix or it must be a Unix client to connect to Unix Oracle database. Thank's for any help.
Hi,
In our project we are using this type. Since in this project server in UNIX(DEC) and client is running on windows. We have created a listener which always listen requests from client and doing the according to the request.
Step1. create a request table, where u are inserting ur request.
step2. create PRO*C proram, which is listening request on the table. If there is any request, call the imp (executable). This is happening on server side.
Benifit. U can make a request from cleint and ftp the file client sit.
Are u interested in more details and code, pls send a mail to me
---- Boby Jose Thekkanath
[email protected]
Dharma Computers(p) Ltd. Bangalore.
null -
How to Import vmdk into Oracle VM Manager 3.0.2
Hi all
I am running BIC2G in VM Box and OracleApps(BIC2G-LNX) in VMware Player.
I want to run both in OVM 3.0.2.
BIC2G is having 5 files one *.ovf* and 4 *.vmdk* files
and OracleApps(BIC2G-LNX) is having one *.vmx* and many *.vmdk* files.
Can anyone please tell me how to import these files into OVM 3.0.2
Thanks
Abhishek Anand
Edited by: Abhishek-Anand on Dec 21, 2011 4:52 AMAbhishek-Anand wrote:
Can anyone please tell me how to import these files into OVM 3.0.2http://blogs.oracle.com/virtualization/entry/migrating_from_hyper_v_and
You need to be able to package your VM as an OVA to import it into Oracle VM. Check your VMware documentation on how to do that. -
Instructions needed for importing a RoboHelp - Oracle Help file
Please provide instructions for importing a RoboHelp, Oracle Help file into an Oracle 8 software application.
Thank you,
Jennifer ByrneThe Oracle Help Guide documents how to program applications to support Oracle Help. Have you looked at it? The Guide is included with the downloads of Oracle Help for Java (OHJ) and Oracle Help for the Web (OHW) and you can also find it directly on OTN at http://otn.oracle.com/docs/tech/java/help/content.html.
But I'm not sure I understand your question completely. What do you mean by "import" the help into the application? I assume you are referring to programming the application to integrate the help into it; hence my suggestion to refer to the Oracle Help Guide, above. But perhaps I'm missing something. Also, what kind of application do you have? Is it a Java application?
Ben Gelernter
Oracle Help Technologies -
Error while importing data into Oracle 11gr2 with arcsde 9.3.1
I am getting error while importing the data into oracle 11g r2. We are using arcsde 9.3.1
It seems to be having some problem with spatial index creation.
kindly help
IMP-00017: following statement failed with ORACLE error 29855:
"CREATE INDEX "A3032_IX1" ON "DGN_POLYLINE_2D" ("SHAPE" ) INDEXTYPE IS "MDS"
"YS"."SPATIAL_INDEX""
IMP-00003: ORACLE error 29855 encountered
ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
ORA-13249: internal error in Spatial index: [mdidxrbd]
ORA-13249: Error in Spatial index: index build failed
ORA-13249: Error in spatial index: [mdrcrtxfergm]
ORA-13249: Error in spatial index: [mdpridxtxfergm]
ORA-13200: internal error [ROWID:AAAT5pAA9AACIy5AAQ] in spatial indexing.
ORA-13206: internal error [] while creating the spatial index
ORA-13033: Invalid data in the SDO_ELEM_INFO_ARRAY in SDO_GEOMETRY object
ORA-06512: at "MDSYSGuys,
I am also getting the same error and also my issue is like I am not even to analyze for which indexes I am getting error. It does not hve any indx name before error.
Processing object type DATABASE_EXPORT/SCHEMA/TABLE/INDEX/DOMAIN_INDEX/INDEX
ORA-39083: Object type INDEX failed to create with error:
ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
ORA-13249: internal error in Spatial index: [mdidxrbd]
ORA-13249: Error in Spatial index: index build failed
ORA-13249: Error in spatial index: [mdrcrtxfergm]
ORA-13249: Error in spatial index: [mdpridxtxfer]
ORA-29400: data cartridge error
ORA-12801: error signaled in parallel query server P000
ORA-13249: Error in spatial index: [mdpridxtxfergm]
ORA-13200: internal error [ROWID:AA
ORA-39083: Object type INDEX failed to create with error:
ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
ORA-13249: internal error in Spatial index: [mdidxrbd]
ORA-13249: Error in Spatial index: index build failed
ORA-13249: Error in spatial index: [mdrcrtxfergm]
ORA-13249: Error in spatial index: [mdpridxtxfer]
ORA-29400: data cartridge error
ORA-12801: error signaled in parallel query server P002
ORA-13249: Error in spatial index: [mdpridxtxfergm]
ORA-13200: internal error [ROWID:AA
ORA-39083: Object type INDEX failed to create with error:
ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
ORA-13249: internal error in Spatial index: [mdidxrbd]
ORA-13249: Error in Spatial index: index build failed
ORA-13249: Error in spatial index: [mdrcrtxfergm]
ORA-13249: Error in spatial index: [mdpridxtxfer]
ORA-29400: data cartridge error
stack cnt....
How can I find for which indexes it is failing?
Thank you,
Myra -
Getting error while importing schema with ORACLE TEXT
IMP-00003: ORACLE error 20000 encountered
ORA-20000: Oracle Text error:
DRG-52204: error while registering index
DRG-10507: duplicate index name: WORKORDER_Q, owner: SYS
ORA-06512: at "CTXSYS.DRUE", line 160
ORA-06512: at "CTXSYS.DRIIMP", line 115
ORA-06512: at line 2
IMP-00088: Problem importing metadata for index WORKORDER_Q. Index creation will be skipped
Database version - Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
Os version - Linux nlxs1012.slb.atosorigin-asp.com 2.6.18-308.el5 #1 SMP Fri Jan 27 17:17:51 EST 2012 x86_64 x86_64 x86_64 GNU/Linux
We have take export of schema from production db now importing data to qa environment..
In import facing above error..I am importing objects from P20_MAXIMO to Q25_MAXIMO to another database..
Below is import par file..
USERID='/ as sysdba'
FILE=exp_P20_MAXIMO_C2364781.dmp
LOG=imp_P20_MAXIMO__Q25_MAXIMO_C2364781_1.log
FROMUSER=P20_MAXIMO
TOUSER=Q25_MAXIMO
buffer=1000000
feedback=100000
Export parfile
userid='/ as sysdba'
owner=P20_MAXIMO
FILE=exp_P20_MAXIMO_C2364781.dmp
LOG=exp_P20_MAXIMO_C2364781.log
buffer=10000000
feedback=100000
statistics=none -
Problem in importing JavaClass in oracle forms
Hi gurus,
I
I am using
Forms [32 Bit] Version 10.1.2.0.2 (Production)
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
Oracle Toolkit Version 10.1.2.0.2 (Production)
PL/SQL Version 10.1.0.4.2 (Production)I am trying to import java Class into forms builder. I am doing this for the first time .
for this I have done...........
I made a simple class in jDeveloper for practice with simple output line
public class getSystem {
public String var ="thistext";
* @param args the command line arguments
public String get_text() {
return this.var;
public static void main(String[] args) {
System.out.println("this is test");
}then I made this file as SAM.JAR (using deploying methode)
set directory path of this SAM.JAR forms_builder_path in regedit,
then import this class in form builder using program > import java class
have the following code in program units
PACKAGE getSystem /* getSystem */ IS
-- DO NOT EDIT THIS FILE - it is machine generated!
-- Constructor for signature ()V
FUNCTION new RETURN ORA_JAVA.JOBJECT;
-- Method: main ([Ljava/lang/String;)V
PROCEDURE main(
a0 ORA_JAVA.JARRAY);
-- Method: get_text ()Ljava/lang/String;
FUNCTION get_text(
obj ORA_JAVA.JOBJECT) RETURN VARCHAR2;
END;-----------------------------------------------------------------------
PACKAGE BODY getSystem IS
-- DO NOT EDIT THIS FILE - it is machine generated!
args JNI.ARGLIST;
-- Constructor for signature ()V
FUNCTION new RETURN ORA_JAVA.JOBJECT IS
BEGIN
args := NULL;
RETURN (JNI.NEW_OBJECT('getSystem', '()V', args));
END;
-- Method: main ([Ljava/lang/String;)V
PROCEDURE main(
a0 ORA_JAVA.JARRAY) IS
BEGIN
args := JNI.CREATE_ARG_LIST(1);
JNI.ADD_OBJECT_ARG(args, a0, '[Ljava/lang/String;');
JNI.CALL_VOID_METHOD(TRUE, NULL, 'getSystem', 'main', '([Ljava/lang/String;)V', args);
END;
-- Method: get_text ()Ljava/lang/String;
FUNCTION get_text(
obj ORA_JAVA.JOBJECT) RETURN VARCHAR2 IS
BEGIN
args := NULL;
RETURN JNI.CALL_STRING_METHOD(FALSE, obj, 'getSystem', 'get_text', '()Ljava/lang/String;', args);
END;
BEGIN
NULL;
END;----------------------------------------
I made a simple form having one button , on when-button-pressed trigger I wrote this code
declare
Jvar ORA_JAVA.JOBJECT;
Fvar varchar2(100);
ex varchar2(5000);
javaException ORA_JAVA.JOBJECT;
begin
Jvar := getsystem.new();
Fvar := getsystem.get_text(Jvar);
message('this is outcomes from java'||Fvar);
EXCEPTION
WHEN ORA_JAVA.EXCEPTION_THROWN THEN
message('Java Exception');
WHEN others THEN
message(sqlerrm);
END;---------------------------
it shows me message 'java Exeption' which means something is wrong ....
when I used this code taken from form builder's help
EXCEPTION
WHEN ORA_JAVA.EXCEPTION_THROWN THEN
javaException := ORA_JAVA.LAST_EXCEPTION;
-- Print out the Exception by using the toString()
-- Method of the exception Object
message(Exception_.toString(javaException));
-- and clean up
ORto catch the exception it shows toString must be declared.....
once I know how to get the value of java methods on forms I could countinue my practices using java on forms please guide me
thanksthanks for you kind replies Sir,
Craig Sir now it's working very well for me , now I can get and set the values of variables and as well as methodes
the problem was solved ,
Andreas Weiden Sir your was right I didn't set the classPath setting in .ENV file , thanks a lot ..
these are the points I really wanna share for those who'll ever face the same problem..
(1) made simple class in Jdeveloper
public class getSystem {
public String varibless ="thistext";
* @param args the command line arguments
public int get_text(int bc) {
int a = 5;
int b= 10;
return bc+a;
public static void main(String[] args) {
getSystem var2 = new getSystem();
System.out.println(var2.get_text(5));
}make it .jar file using deploying mathode...
(2) set FORMS_BUILDER_CLASSPATH in regedit..
(3) restart forms builder and go to progarm > import java class
(4) select the class name that you made
(5) press option button and check include get/set public fields if you wanna interact with variables in class
(7) now make simple canvas with button , us this code on when-new-button press trigger
declare
Jvar ORA_JAVA.JOBJECT;
Fvar varchar2(100);
ex varchar2(5000);
javaException ORA_JAVA.JOBJECT;
--mn ORA_JAVA.JARRAY(10);
begin
jvar := getsystem.new;
Fvar := getsystem.get_text(Jvar,5);
message('this is outcomes from java'||Fvar);
ex := getsystem.getvaribless(jvar);
message('value of the variable in class '||ex);
--- similerty change the value of variable in class and then get it again
getSystem.setvaribless(jvar,'yournewvalue');
EXCEPTION
WHEN ORA_JAVA.java_error THEN
message( ora_java.last_error);
WHEN others THEN
message(sqlerrm);
END;hope for the best.....
thanks a lot again...
regards:
usman noshahi -
Export and Import table in Oracle 8i
Hi Gurus,
I want to do an export of a oracle table to a binary file which is in 8i for back up.
And at some point of time import the same.
Can anyone please guide me the steps for the same. I am using SQL*plus & toad.
Thanks in advance.you can use IMP/EXP utilities
this can be a good start http://www.orafaq.com/wiki/Import_Export_FAQ
Maybe you are looking for
-
GR/IR Clearing for Non-Inventory Items in PO
Hi all, Can anybody explain if GR/IR reconciliation can be done for non-inventory items in PO. For example, I've raised a PO for a service and received invoice before the service is delivered (little hypothetical, of course, but incase). If so, will
-
We gave my mom an ipad mini, but the text under the icons is barely readable for the elderly. The accessibility options increase the size of contacts, email, etc, and the zoom gives an option to increase, but that is not user friendly for the elderl
-
Safari (os x 10.7.4) not starting
i am trying to start safari in osx 10.7.4. after the icon jums up&down in the dock the starting-process stops and i get: Process: Safari [411] Path: /Applications/Safari.app/Contents/MacOS/Safari Identifier: com.apple.Safari Version: 5.
-
I have a Dell XPS running on Windows 7 and use an AirPort Extreme 802.11n Wi-Fi to get wireless internet access for other laptops in the home. I want to connect an AirPort Express 802.11n into the network to wirelessly extend the range of my wireless
-
Regular expression evaluation with logical operator
Hi All, I am bit confuse with expression evaluation with logical operator. I am trying to understand below expression. eXa.getTrue() && eXa.getFalse() || eXa.getFalse() && eXa.getTrue() || eXa.getFalse() comes as false and True Count: 1 False Count: