1

I'm really frustrated with JavaDB and Netbeans! ANY help would now be appreciated. I use Netbeans 7.2.1 with the latest Java SDK.

OBJECTIVE:
Import data in CSV format from file located in C:\ into a JavaDB table named APP.USERS.

WHAT I'VE DONE:
I've used the following codes to try and import the data into the table, using the SQL Query utility in Netbeans:

  1. CALL function:

CALL SYSCS_UTIL.SYSCS_IMPORT_TABLE (null, 'USERS', 'FIRSTNAME,LASTNAME,USERNAME,PASSWORD,UNIQUENR,MEMBERSINCE,DOB,EMAIL,AWARDPOINTS,USERTYPE', 'c:\SQL_APP_USERS', '\n',',','UTF-8', 0); ` SELECT * FROM APP.USERS;`

  1. The "other" function:

INSERT INTO APP.USERS(FIRSTNAME,LASTNAME,USERNAME,PASSWORD,UNIQUENR,MEMBERSINCE,DOB,EMAIL,AWARDPOINTS,USERTYPE) VALUES (FROM 'c:\SQL_APP_USERS.txt' WITH ( FIELDTERMINATOR = ',', ROWTERMINATOR = '\n' )); --Check the content of the table. SELECT * FROM APP.USERS;

ISSUES:

  • Reading the Oracle KB docs doesn't help me at all!!! (http://docs.oracle.com/javadb/10.4.1.3/tools/ctoolsimport16245.html)
  • Executing first mentioned function shows result: Error code -1, SQL state 42Y03: 'SYSCS_UTIL.SYSCS_IMPORT_DATA' is not recognized as a function or procedure.
  • Executing second mentioned function shows results: Error code -1, SQL state 42X01: Syntax error: Encountered "FROM" at line 2, column 9

PLEASE - HELP.

4

1 に答える 1