SQL error #3115 during Create table
As a new user to this AIR problem, I am using "adl
application.xml" to start up testing.
I am using disk file based table. Disk file is wiped out each
time before startup this application.
Following sql failed all the time. Is there anything wrong
with adl or any cached data need to empty out prior to create
table?
createTables : function(callback) {
// create tables
var stmt = new air.SQLStatement();
stmt.sqlConnection = this.sqlConnection;
stmt.text = "CREATE TABLE IF NOT EXISTS Contacts ( " +
"id INTEGER PRIMARY KEY AUTOINCREMENT, " +
"manufacturer VARCHAR(32), " +
"model VARCHAR(32), " +
"sn VARCHAR(32), " +
"orderNumber VARCHAR(64), " +
"type VARCHAR(256), " +
"shipping VARCHAR(32), " +
"check VARCHAR(32), " +
"notes VARCHAR, " +
"photo BLOB)";
var success = function(event) {
if (callback) callback(true);
var failure = function(event) {
runtime.trace("CREATE TABLE error:", event.error);
runtime.trace("event.error.code:", event.error.code);
runtime.trace("event.error.message:", event.error.message);
if (callback) callback(false, event.text);
stmt.addEventListener(air.SQLErrorEvent.ERROR, failure);
stmt.addEventListener(air.SQLEvent.RESULT, success);
stmt.execute();
D810# adl application.xml
Loaded
Loaded
Loaded
Loaded
Loaded
Loaded
Loaded
creating database D:\blackbooksafe\data\database.db
CREATE TABLE error: SQLError: 'Error #3115: SQL Error.',
details:'near 'VARCHAR'
: syntax error', operation:'execute', detailID:'2003'
event.error.code: undefined
event.error.message: Error #3115: SQL Error.
Cannot create database: Error #3115: SQL Error.
D810#
Hi Dimitri.
If you click on the tables node before you right click, does this work for you? Apple's focus is different to windows and you need to click on the component you wish to get a menu on on OSX
Let me know.
B
Similar Messages
-
Error ODS activation - sql error when accessing a table.
Hi,
sometimes occurs an error by activation ODS. I have proces chain and when is loaded second packet an error occurs. In monitor>>
-RSMPC 128, datapacket 3 is wrong, with status number 9
-RSMPC 131
-RSDRO 108 - communcation error (sql error when accessing a table)
In sm21>
-sql error when accessing a table
-The exception, which is assigned to the class 'CX_SY_OPEN_SQL_DB', was
either caught nor passed along using a RAISING clause, in the procedure <b>"UPDATE_ATAB"</b> "(FORM)"
Since the caller of the procedure could not have expected this exception
to occur, the running program was terminated.
The reason for the exception is:
The database system recognized that your last operation on the database
would have led to a deadlock.
Therefore, your transaction was rolled back
to avoid this.
ORACLE always terminates any transaction that would result in deadlock.
The other transactions involved in this potential deadlock
are not affected by the termination.
I have BW 3.5.
Thank You very much.There are a few different scenarios that I can think of where this might come up that all involve what might resulting in parallel (concurrent)processes:
Loading packets in parallel - that is there are X number of processes loading packets concurrently. This could be set in your IMG settings system wide or in the InfoPackage for just this datasource. You seem to indicate that you don't have this.
Database parallel processing - RSAMDIN - ORA_PARALLEL_DEGREE ( there was a different RSADMIN parm for older versions - forget what SP the change came with).
You have multiple InfoPackages for the datasource, each loading what should be a different range of data, and they run atthe same time.
You could be loading from two different datasources to the ODS at the same time.
If any of these are true, I would look at bumping the INITRANS setting up. Your DBA will probably need to do this for table and its indices. There is a Note - 831234 that allows you to create a parameter in RSADMIN that will specify a INITRANS value (e.g. 20) rather than using the default. The ODS would need to be activated to pick this new setting up for the table to be altered.
You could also look at the Processing settings for the InfoPackage and change to PSA first, then target to see if that helps.
Or if you are loading from two different datasources at the same time, you might adjust your schedule so that doesn't happen.
Pizzaman -
SQL Error 0 during DBACockpit setup in Managed System Configuration
Hi All,
I'm getting SQL Error 0 during DBA Cockpit setup in Managed system configuration. I'm trying to connect MsSQL 2005 from Linux system(Solution Manager 7.1 SP10). I have installed necessary ODBC and microsoft drivers. Any suggestions will be appreciated.
Regards,
PragadeesIf I've understood you correctly, you are trying to setup a remote database connection from an SAP Solution Manager system running on Linux with a database which is NOT MSSQL to a database which is MSSQL running on Windows.
In that case have you checked these SAP notes ?
1265134 - DBA Cockpit: Connecting a remote database
1388700 - SolMan 7.0 EHP1 Database Warehouse for MSSQL
Regards
RB -
Process chain failure SQL ERROR 942 ORA-00942:table or view does not exist
HI all,
We have a proces chain with 'ceate index' process type and got failed with an error as follows......
SQL ERROR 942 ORA-00942:table or view does not exist
Plz can anyone give solution for this error.
SATISH.Hey Satish,
Please refer to this thread:
BRCONNECT fails with SQL error -942 at location ora_vers_get-1
I am sure the solution there should solve your problem. There are various other discussions about this error in the forum, I suggest you look through them for better understanding and additional material.
Cheers!!!
Manu. -
SYS.DBMS_CDC_PUBLISH errors during create table command
While trying to create tables I am getting the following errors.
@dv001_bld_emp_profile.sql
create table emp_profile_tbl (
ERROR at line 1:
ORA-00604: error occurred at recursive SQL level 1
ORA-01422: exact fetch returns more than requested number of rows
ORA-06512: at "SYS.DBMS_CDC_PUBLISH", line 326
ORA-06512: at line 3
I tried to reload the predefined Oracle packages by re-running the catproc.sql script but that had no effect.
Can you help???I tried that but no luck yet, also tried put all in a single line, but the same error. It doesn't something tricky here, but actual problem with package. "ddl_markers" is new to 11g and not much documentation is available on that.
Also setting ddl_markers=N removed 3 columns from Publisher table, and the effect of it on Subscriber's view is still a gray area, -
Adobe Air for iOS - SQLError: 'Error #3115' no such table
I am developing Adobe Air application for iOS with sqlite on it. When running on my local machine, it worked like charm (add, edit & delete). Unfortunately, when tried running on iPAD, it gives me the following error:
SQLError: 'Error #3115', details:'no such table: 'tblEmploye'', operation:'execute', detailID:'2013'
Here's my code when opening the sqlite database: ** data file is saved on the current application directory where all the files are stored:
exampleDBFile = File.documentsDirectory.resolvePath("mydb.db");
if (exampleDBFile==null || !exampleDBFile.exists) {
MovieClip(root).mcSong.visible = false;
MovieClip(root).mcAlert.visible = true;
MovieClip(root).mcAlert.enabled = true;
MovieClip(root).mcAlert.txtErrorMessage.text = "Database not found";
exampleDB = new SQLConnection();
exampleDB.addEventListener(SQLEvent.OPEN, onExampleDBOpened);
exampleDB.addEventListener(SQLErrorEvent.ERROR, onExampleDBError);
//exampleDB.openAsync(exampleDBFile);
exampleDB.open(exampleDBFile);
I also tried using the following but still no luck
exampleDBFile = File.applicationDirectory.resolvePath("mydb.db");
when using this, i receive a different error : Error:Error #3104
And heres the code for adding new entries
sqlInsert = "insert into tblLyrics (empName, empDesc) values
('"+ strReplace(txtSearchMe.text, "'", "") + "','"+ strReplace(txtContent.text,"'","") +"')";
dbStatement.text = sqlInsert;
dbStatement.addEventListener(SQLEvent.RESULT, onDBStatementInsertResult);
dbStatement.execute();
Hoping for your advice....Hi,
I am sorry you are facing this issue. Is the code that you posted all that you are doing? It is missing a few things:
1) You are not creating the dbFile and the table tblEmployee. Do they already exist on your desktop? On device, you would need to create them.
2) dbStatement.SQLConnection property is not set anywhere.
The following sample code is from http://help.adobe.com/en_US/air/reference/html/flash/data/SQLConnection.html. Could you try and see if it works for you?
package
import flash.data.SQLConnection;
import flash.data.SQLResult;
import flash.data.SQLStatement;
import flash.display.Sprite;
import flash.events.SQLErrorEvent;
import flash.events.SQLEvent;
import flash.filesystem.File;
public class MultipleInsertTransactionExample extends Sprite
private var conn:SQLConnection;
private var insertEmployee:SQLStatement;
private var insertPhoneNumber:SQLStatement;
private var dbFile:File
public function MultipleInsertTransactionExample():void
// define where to find the database file
//var appStorage:File = File.applicationDirectory;
dbFile = new File(File.documentsDirectory.nativePath + File.separator + "ExampleDatabase.db");
// open the database connection
conn = new SQLConnection();
conn.addEventListener(SQLErrorEvent.ERROR, errorHandler);
conn.addEventListener(SQLEvent.OPEN, openHandler);
conn.openAsync(dbFile);
// Called when the database is connected
private function openHandler(event:SQLEvent):void
conn.removeEventListener(SQLEvent.OPEN, openHandler);
// start a transaction
conn.addEventListener(SQLEvent.BEGIN, beginHandler);
conn.begin();
// Called when the transaction begins
private function beginHandler(event:SQLEvent):void
conn.removeEventListener(SQLEvent.BEGIN, beginHandler);
// create and execute the first SQL statement:
// insert an employee record
var createEmployees:SQLStatement = new SQLStatement();
createEmployees.sqlConnection = conn;
createEmployees.text =
"CREATE TABLE IF NOT EXISTS employees(lastName, firstName, email, birthday) ";
createEmployees.execute();
insertEmployee = new SQLStatement();
insertEmployee.sqlConnection = conn;
insertEmployee.text =
"INSERT INTO employees (lastName, firstName, email, birthday) " +
"VALUES (:lastName, :firstName, :email, :birthday)";
insertEmployee.parameters[":lastName"] = "Smith";
insertEmployee.parameters[":firstName"] = "Bob";
insertEmployee.parameters[":email"] = "[email protected]";
insertEmployee.parameters[":birthday"] = new Date(1971, 8, 12);
insertEmployee.addEventListener(SQLEvent.RESULT, insertEmployeeHandler);
insertEmployee.addEventListener(SQLErrorEvent.ERROR, errorHandler);
insertEmployee.execute();
// Called after the employee record is inserted
private function insertEmployeeHandler(event:SQLEvent):void
insertEmployee.removeEventListener(SQLEvent.RESULT, insertEmployeeHandler);
insertEmployee.removeEventListener(SQLErrorEvent.ERROR, errorHandler);
// Get the employee id of the newly created employee row
var result:SQLResult = insertEmployee.getResult();
var employeeId:Number = result.lastInsertRowID;
// Add a phone number to the related phoneNumbers table
var createTab:SQLStatement = new SQLStatement();
createTab.sqlConnection = conn;
createTab.text =
"CREATE TABLE IF NOT EXISTS phoneNumbers(employeeId, type, number)";
createTab.execute();
insertPhoneNumber = new SQLStatement();
insertPhoneNumber.sqlConnection = conn;
insertPhoneNumber.text =
"INSERT INTO phoneNumbers (employeeId, type, number) " +
"VALUES (:employeeId, :type, :number)";
insertPhoneNumber.parameters[":employeeId"] = employeeId;
insertPhoneNumber.parameters[":type"] = "Home";
insertPhoneNumber.parameters[":number"] = "(555) 555-1234";
insertPhoneNumber.addEventListener(SQLEvent.RESULT, insertPhoneNumberHandler);
insertPhoneNumber.addEventListener(SQLErrorEvent.ERROR, errorHandler);
insertPhoneNumber.execute();
// Called after the phone number record is inserted
private function insertPhoneNumberHandler(event:SQLEvent):void
insertPhoneNumber.removeEventListener(SQLEvent.RESULT, insertPhoneNumberHandler);
insertPhoneNumber.removeEventListener(SQLErrorEvent.ERROR, errorHandler);
// No errors so far, so commit the transaction
conn.addEventListener(SQLEvent.COMMIT, commitHandler);
conn.commit();
// Called after the transaction is committed
private function commitHandler(event:SQLEvent):void
conn.removeEventListener(SQLEvent.COMMIT, commitHandler);
trace("Transaction complete");
// Called whenever an error occurs
private function errorHandler(event:SQLErrorEvent):void
// If a transaction is happening, roll it back
if (conn.inTransaction)
conn.addEventListener(SQLEvent.ROLLBACK, rollbackHandler);
conn.rollback();
trace(event.error.message);
trace(event.error.details);
// Called when the transaction is rolled back
private function rollbackHandler(event:SQLEvent):void
conn.removeEventListener(SQLEvent.ROLLBACK, rollbackHandler);
// add additional error handling, close the database, etc.
Thanks,
Sanika -
Ora-907 during create table statement
Customer is receiving an ora-907 error running this sql statement and I cannot determine where the problem is, if there is extra spaces or if it's truly missing the right parenthesis.
SQL> set timing on
SQL> set echo on
SQL> set autotrace on
SQL> @sr.sql
SQL> create table tables_for_change_set (
2 change_set_name varchar2(30),
3 table_owner varchar2(30),
4 table_name varchar2(30),
5 column_names_0nf varchar2(4000),
6 constraint tfcs_pk primary key (change_set_name, table_owner, table_name)
7 )
8 ;
Table created.
Elapsed: 00:00:00.13
SQL>
SQL>
SQL> create table columns_for_change_set (
2 change_set_name varchar2(30),
3 table_owner varchar2(30),
4 table_name varchar2(30),
5 column_name varchar2(30),
6 data_type varchar2(30),
7 constraint cfcs_pk primary key (change_set_name, table_owner, table_name, column_name),
8 constraint cfcs_tfcs_fk foreign key (change_set_name, table_owner, table_name) references tables_for_change_set (ch
ange_set_name, table_owner, table_name)
9 using index (create index cfcs_tfcs_fk on columns_for_change_set (change_set_name, table_owner, table_name))
10 );
using index (create index cfcs_tfcs_fk on columns_for_change_set (change_set_name, table_owner, table_name))
ERROR at line 9:
ORA-00907: missing right parenthesis
Thanks,
LisaWelcome to the forum!
So why did you use your second post to the forum to resurrect a thread that is over a year old?
Hemant already provided the correct answer to the question and your reply to him that 'This contradicts the constraint documentation' doesn't specify what you mean by "this" but is wrong on any account.
You certainly can't be referring to Hemant's statement
>
The syntax "constraint cfcs_tfcs_fk foreign key ...", using the key words "foreign key" is for an out-of-line constraint definition.
>
Since the diagram clearly shows his statement is correct.
And you can't be referring to his statement
>
Furthermore, the "using index" clause is for Primary Key constraint , not for a Foreign Key. You should manually create the index separately.
>
Since the documentation states exactly what Hemant said.
See 'Using Indexes to Enforce Constraints' in the SQL Language doc
http://docs.oracle.com/cd/B28359_01/server.111/b28286/clauses002.htm
>
Restrictions on the using_index_clause The following restrictions apply to the using_index_clause:
You cannot specify this clause for a view constraint.
You cannot specify this clause for a NOT NULL, foreign key, or check constraint.
>
Please check the dates in the threads before posting. -
Error when generating create table script
Hi,
I am trying to generate create table script from an existing table. But I get the following error when doing so,
ORA-20001: Rem Unable to generate DDL for ORA-06502: PL/SQL: numeric or value error ORA-31605: the following was returned from LpxXSLResetAllVars in routine kuxslResetParams: LPX-1: NULL pointer ORA-22921: length of input buffer is smaller than amount requested .
Any suggestions on what could be wrong?
Thanks.
-Bthis is my bad, i should have updated this thread when we originally troubleshot this issue...
that error you're getting on htmldb.oracle.com when you try to generate ddl for tables and such is a manifestation of a database bug (#3372908) that's recently been filed. checking the worklog for that bug suggests that those guys are still working out the issue. unfortunately, there's no current work-around on htmldb.oracle.com at the moment. if you want to generate ddl for your objects, you'd have to query the appropriate data dictionary views to get the info you need.
...i'll update the htmldb.oracle.com interface in a bit to prevent other users from hitting this issue. so you know, this is only an issue on db versions 9.2.0.3 and 9.2.0.4 running on some platforms and only (as far as i know) those using the AL32UTF8 characterset ...which does include our hosted site for now.
hope this helps,
raj -
Sql error 7105 on REPOSRC table
Hi dear all, i´m having a database consistency error, after execute the command DBCC CHECKDB, it reported problems wit table REPOSRC with consistency error and suggested a "repair_allow_data_loss", according to note 142731 in this critical cases is recommended a restore from a free error backup, but this is not our situation, (this problem is in development system). In this way sombody know how proceed? is possible copy this table from production? (production is free error). I need first run the repair command and follow by the copy table procedure?.
Thanks and regards
RobinsonHey,
I might have a solution, to save the developments of the developers, and fix the
problem in the REPOSRC.
This steps, may not end success, and therefore you should take a full backup of the system, before starting this. in addition, if you have a recent backup of the system, you should retore the system to the backup and not contiue,
My recommandation:
find the records with the errors
by copying to table to diffrent table in the same DB (for example REPOSRC_TEMP),
you would probebly find that the records with the errors are SAP Standard reports,
you can determine which row are damaged by the records that can not be read fully, only the primery key fields can be read (in your case the index is not damaged)
now, if you are in the same version SP of SAP in the DEV/PROD,
you can: copy the the records with the errors from REPOSRC of the PROD to you REPOSRC_TEMP, at this case you can drop REPOSRC, and create it again in the SQL server, copy the data from REPOSRC_TEMP to REPOSRC. -
Privilege error while running Create Table Script inside Stored Procedure.
Hello All,
I have Oracle 10G server and SQL Developer Client,
I have One User with Appropriate Rights, Login with that user from SQL Developer(client),
Within my Procedure, Dynamic SQL script is like If I pass in a TABLE NAME as parameter, It Creates that table, but now problem is It throws an error for Privilege.
Where as if I Execute Create table script outside the procedure(as Normal SQL), it executes Ok, but why it throws Privilege error within procedure ?
Whether any extra Rights needed for this user to execute such Create Table Dynamic SQL?
Please Help.
Thanks,
j@yElic
Thanks a lot dude...
It works now,
regards,
j@y -
Hello team,
I have a project that I need to do, what is the best approach for each step?
1- I have to create a table in Microsoft SQL Server.
2- I have to import data/ tables from Microsoft Excel or Access to Microsoft SQL Server. Should I use Microsoft Visual Studio to move data from Excel or Access?
3-I should populate the created table with the data from the exported data.
4-How should I add the second and third imported table to the first table? Should I use union query?
After I learn these, I will bring up the code to make sure what I do is right.
Thanks for all,
Guity
GGGGGNNNNNHello Naomi,
I have imported all the tables into SQL Server,
I created a table:
CREATE
TABLE dbo.Orders
Now I want to populate this table with the values from imported tables, will this code take care of this task?
INSERT INTO dbo.Orders(OrderId, OrderDate)
SELECT OrderId, OrderDate
FROM Sales.Orders
UNION
SELECT OrderId, OrderDate
FROM Sales.Orders1
Union
SELECT OrderId, OrderDate
FROM Sales.Orders2
If not, what is the code?
Please advise me.
GGGGGNNNNN
GGGGGNNNNN -
Error message on creating Table Space
Hello All,
I am new to Oracle and trying to create a database after Oracle 10g installation. These are the steps followed. This looks to be something wrong I am doing, can someone please help?
SQL> Create Tablespace CLOUD_DATA datafile '$ORACLE_HOME/oradata/cloud_data01.dbf' size 1000M
autoextend on;
Create Tablespace CLOUD_DATA datafile '$ORACLE_HOME/oradata/cloud_data01.dbf' size 1000M
autoextend on
ERROR at line 1:
ORA-01119: error in creating database file
'$ORACLE_HOME/oradata/cloud_data01.dbf'
ORA-27040: file create error, unable to create file
OSD-04002: unable to open file
O/S-Error: (OS 3) The system cannot find the patch specified
Regs, /TTgive exact path of datafile inplace of $ORACLE_HOME.
like
Create Tablespace CLOUD_DATA datafile '/u01/app/oradata/cloud_data01.dbf' size 1000M -
SQL Error : missing expression - Creating XML file with ODI
Hi,
I saw threads about errors like this and read that maybe it can come from how I chose the staging area. I still can't see where the problem is. I'm trying to create an xml file from data stored in a Oracle database. The interface which execution fails select data from tables and create a tag in the XML file. Here are information about it :
The staging area is diferent from the target and is an oracle database schema. (I guess it creates temporary tables in that schema ?)
In the flow tab, the LKM is LKM SQL to SQL, the option delete temporary objects is set to yes.
The IKM choice for the target is IKM SQL Control Append and options are as following :
- insert : yes
- commit : yes
- flow contreol : no
- recycle errors : no
- static control : no
- truncate : no
- delete all : no
- create target table : yes
- delete temporary objects : yes
Columns mapping in the target are the following :
WKID > THEADER.WKID
EXTID > THEADER.EXTID
ORDER > THEADER.ORDER
INSTFK > THEADER.INSTFK
For every column in the target :
- Run on source
- Updating : insert, update and ud4 are checked
no update key is defined
In the operator, the step failing when running the interface is the loading data in the work table.
If you need the SQL request in the execution plan, or anything else, please tell me.
Thank you in advance for any help on this.
MarieIt would help if you provide error message and its stack trace.
Please also look at the documentation (If not already done so) for creating xml file XML Files - 11g Release 1 (11.1.1) -
PI7.11 IR Error Message during creating of objects
Hi
I get follwing error message every time I create a new object e.g. a receiver determination.
while trying to invoke the method com.sap.aii.ib.bom.gen.XiReference.getTypeId() of an object loaded from local variable 'xiReference'
Afterwards i choose close an the object will be created.
Any idea what the cause of this could be?
Thanks in advance
MichaelHello Sarah
I checked with our basis guys, but the recommended patch is already obsolete for our system.
Michael -
Create table using a dynamic SQL returns error.
DBMS_UTILITY.exec_ddl_statement (
'create table test_table as select column_names from table_name@dblink
where condition' )
i am using the above statement in a pl/sql procedure.
It throws an error saying
"Exact fetch returns more than requested no. of rows"
can any one help me on this please!!!
Very Urgent
Thanks in Advance.
Bala.Works for me. But the more important question would be the need to have this run within PL/SQL? Why do you want to do that? what is the requirement? can you not do this one time at SQL*Plus prompt and be done with it?
SQL> drop table emp ;
Table dropped.
SQL>
SQL>
SQL> exec dbms_utility.exec_ddl_statement('create table emp as select * from [email protected] where deptno = 10') ;
PL/SQL procedure successfully completed.
SQL> select count(*) from emp ;
COUNT(*)
3
1 row selected.
SQL> select count(*) from [email protected] ;
COUNT(*)
14
1 row selected.
SQL> select count(*) from [email protected] where deptno = 10 ;
COUNT(*)
3
1 row selected.
SQL>Message was edited by:
Kamal Kishore
Maybe you are looking for
-
Why is it not possible to do an on line search in Photoshop?
Today I tried the online search facility in Photoshop CS5.5. It does not seem to work, as a search for any item came up with "an unexpected error has ocurred - please enter your search item again" - same result every time regardless of the item being
-
Attempting to create an interactive map with flash - getting errors with my actionscript
I'm currently having an issue creating a set of buttons that are supposed to turn individual layers on and off. The layers I have are: fishing spots, facilities, trails, map elements, an aerial photo, and parking lots. It is giving error #s 1119 an
-
Old computer - slow transfers for sata
hi all, I've set up a linux box with very old stuff. I'm talking about a Pentium II 350 MHz on a Asus P5B, 192 MB RAM. Though I have some new disks, with which I am experienceing slow transfers and I would like to know some advices on what could I do
-
Override Outlook calendar with Treo calendar info
For Treo 650, how do I override my Windows XP Outlook calendar with info on my Treo calendar when Hot-Sync-ing? Post relates to: Treo 650 (Alltel)
-
Adobe put CS6 Extended on computer as trial now can't access regular cs6
Adobe messenger had an update. when I updated it turned out to be a trial version of PS CS6 Extended rather than my original Photoshop CS6. Now trial is over and I can not access my original photoshop CS6 program. Only option is to purchase the Ex