JQuery UI Widget trying to insert into DW
Hello, I have just been trying for a long time to insert a new (jQuery) "tabs" widget into my DW CS6 via the import widget button, but DW will absolutely not let me.
THE ERROR MESSAGE BELOW IN THE WIDGET BROWSER:
There was an error importing the widget:
The file:///C:/Users/sara/Desktop/jquery-ui-1.11.0.custom.zip could not be unzipped. Make sure that this file is a valid Open Ajax Widget packaged by the Adobe Dreamweaver Widget Browser
Last year before all the updates (in CS6) I was able to insert a tabs widget from jQuery just fine, but now, so many problems!. When I select the widget .zip file to load I get the above error and after reading others messages i'm pretty sure its not jQuery, but DW who have disabled things to try and make me upgrade to CC. If this is the case how can I back roll to previous updates of dreamweaver?
@I am using http://jqueryui.com/themeroller/ and have made a custom themed Tabs widget
Is there another way round this, i.e can I drop the .zip file wherever the widgets folder is location etc or has anyone found another way around the DW restrictions?
thanks
Sara
Hi Nancy, if Adobe has completely pulled the plug on the widget browser, then how do I now insert / load the widgets from the jQuery website? - I tried for a day, but cannot find a way.
The direct link you gave is what I am already trying to insert into DW (see my original message), to insert the tabs from jquery, you have to go to the theme roller to download it. (.zip file). How do I now get it on my .PHP page without the load widget that DW has disabled?
I have paid a lot of money for this software and really don't think its fair that an update can disable important things like this without warning. Is there somewhere where I can maybe download the widget installer, i.e the one I already paid for when I bought CS6 DW?
Similar Messages
-
Oracle error ORA-01461when trying to insert into an ORACLE BLOB field
I am getting Oracle error ‘ORA-01461: can bind a LONG value only for insert into a LONG column' when trying to insert into an ORACLE BLOB field. The error occurs when trying to insert a large BLOB (JPG), but does not occur when inserting a small (<1K) picture BLOB.(JPG). Any ideas?
BTW, when using a SQL Server datasource using the same code.... everything works with no problems.
ORACLE version is 11.2.0.1
The ORACLE datasource is JDBC using Oracle's JDBC driver ojdbc6.jar v11.2.0.1 (I also have tried ojdbc5.jar v11.2.0.1; ojdbc5.jar v11.2.0.4; and ojdbc6.jar v11.2.0.4 with the same error result.)
Here is my code:
<cfset file_mime = Lcase(Right(postedXMLRoot.objname.XmlText, 3))>
<cfif file_mime EQ 'jpg'><cfset file_mime = 'jpeg'></cfif>
<cfset file_mime = 'data:image/' & file_mime & ';base64,'>
<cfset image64 = ImageReadBase64("#file_mime##postedXMLRoot.objbase64.XmlText#")>
<cfset ramfile = "ram://" & postedXMLRoot.objname.XmlText>
<cfimage action="write" source="#image64#" destination="#ramfile#" overwrite="true">
<cffile action="readbinary" file="#ramfile#" variable="image_bin">
<cffile action="delete" file="#ramfile#">
<cfquery name="InsertImage" datasource="#datasource#">
INSERT INTO test_images
image_blob
SELECT
<cfqueryparam value="#image_bin#" cfsqltype="CF_SQL_BLOB">
FROM dual
</cfquery>Can't you use "alter index <shema.spatial_index_name> rebuild ONLINE" ? Thanks. I could switch to "rebuild ONLINE" and see if that helps. Are there any potential adverse effects going forward, e.g. significantly longer rebuild than not using the ONLINE keyword, etc? Also wondering if spatial index operations (index type = DOMAIN) obey all the typical things you'd expect with "regular" indexes, e.g. B-TREE, etc.
-
ORA-00604 error when trying to insert into a XMLTYPE stored as BINARY
Hi. Here's the scenario.
Here's my Oracle version:
Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
The database is encoded as AL32UTF8.
First I create the table...
create table binary_table (the_field XMLTYPE) XMLTYPE COLUMN the_field STORE AS BINARY XML;
Now I try and do an insert like this...
insert into binary_table values (xmltype('<?xml version="1.0" encoding="AL32UTF8"?>' || chr(10) || '<a>b</a>' || chr(10)));
and I get this error:
SQLState: 60000
ErrorCode: 604
Position: 122
Error: ORA-00604: error occurred at recursive SQL level 1
ORA-00942: table or view does not exist
If I create the table with a CLOB storage option for the XMLTYPE, the insert works fine. If I repeat these steps in another database instance, same Oracle version, that's encoded as WE8ISO8859P1, it also works fine. It behaves the same in several clients. I also tried it with several different values for NLS_LANG and that didn't help.
I do want to say that this database instance has just been set up especially for me so I can do some R&D on AL32UTF8 and XMLTYPE to see if it fits our needs. So it might be a problem with the database instance.
Thanks for taking a look at this.
Ralph
Edited by: stryder100 on Jul 24, 2009 12:11 PMHi,
Use this
Load data
append Into TABLE HS_HRMIG_EMP_PER_20MAR07 fields terminated by "," optionally enclosed by '"'
TRAILING NULLCOLS.
Here optional enclosed by is for doubles quotes which should needs to place in single quotes.
like '"'.
try with this.
--Basava.S -
ORA-01008 - not all variable bounfd when trying to insert into trigger
Hi,
Uisng Oraclle 11.2.0.3 and trying insert into table on remote schema.
Tracked problem down to one column - the parent_num..
Offending code
a.mult_parent_num = ( select nvl(MGrp_num, 0)
from [email protected]
--where MGrp_PARENT_num is not null
--and
where substr(upper(MGrp_DESCRIPTION), 2) = (select MULT_NAME
from por_multiple p
where p.mult_link_multiple_code = B.MULT_LINK_MULTIPLE_num)Complete truigger
create or replace trigger POR_TRG_POP_IKNOW_MULTIPLE
after INSERT OR UPDATE or delete on por_MULTIPLE
for each row
-- tO ENSURE I-KNOW KEPT UP-TO-DATE WITH HOMIS MULTIPLE
-- delib not delet form i-know as if has been used by customer cannot delete
-- due to referential inetgrity constraints in i-know
declare
begin
-- ensure if updating record one of attributes interested in for ho_issues_stg changed
IF INSERTING OR UPDATING
THEN
MERGE INTO [email protected] a
USING
select
:NEW.MULT_ANMW_MULTIPLE_CODE MULT_ANMW_MULTIPLE_CODE,
:new.MULT_AUTH_REQUIRED MULT_AUTH_REQUIRED,
:new.MULT_JMW_MULTIPLE_TYPE_CODE MULT_JMW_MULTIPLE_TYPE_CODE,
:new.MULT_LINK_MULTIPLE_CODE MULT_LINK_MULTIPLE_num,
:new.MULT_MULTIPLE_CODE MULT_MULTIPLE_NUM,
:new.MULT_NAME MULT_NAME,
:new.MULT_PROM_AUTH_REQUIRED MULT_PROM_AUTH_REQUIRED,
:new.MULT_SELECTED_MULTIPLE MULT_SELECTED_MULTIPLE,
'Y' MULT_active_flag,
nvl(:new.MULT_JMW_MULTIPLE_TYPE_CODE, 0) MULT_CHANNEL_NUM--,
-- :new.MULT_LINK_MULTIPLE_CODE MULT_PARENT_NUM
from dual
) b
on
a.mult_multiple_NUM = b.MULT_MULTIPLE_NUM
when matched THEN update set
A.MULT_ANMW_MULTIPLE_CODE = B.MULT_ANMW_MULTIPLE_CODE ,
A.MULT_AUTH_REQUIRED = B.MULT_AUTH_REQUIRED,
A.MULT_JMW_MULTIPLE_TYPE_CODE = B.MULT_JMW_MULTIPLE_TYPE_CODE ,
A.MULT_LINK_MULTIPLE_num = B.MULT_LINK_MULTIPLE_num,
A.MULT_NAME =B.MULT_NAME,
A.MULT_PROM_AUTH_REQUIRED=B.MULT_PROM_AUTH_REQUIRED,
A.MULT_SELECTED_MULTIPLe=B.MULT_SELECTED_MULTIPLE,
A.MULT_ACTIVE_FLAG = B.MULT_ACTIVE_FLAG,
A.MULT_CHANNEL_NUM= B.MULT_CHANNEL_NUM
a.mult_parent_num = ( select nvl(MGrp_num, 0)
from [email protected]
--where MGrp_PARENT_num is not null
--and
where substr(upper(MGrp_DESCRIPTION), 2) = (select MULT_NAME
from por_multiple p
where p.mult_link_multiple_code = B.MULT_LINK_MULTIPLE_num)
when not matched
then insert
A.MULT_ANMW_MULTIPLE_CODE,
A.MULT_AUTH_REQUIRED,
A.MULT_JMW_MULTIPLE_TYPE_CODE,
A.MULT_LINK_MULTIPLE_NUM,
A.MULT_MULTIPLE_NUM,
A.MULT_NAME,
a.MULT_PROM_AUTH_REQUIRED,
a.MULT_SELECTED_MULTIPLE,
-- NEW FIELDS ON I-KNOW
a.MULT_ACTIVE_FLAG,
a.MULT_CHANNEL_NUM,
a.MULT_PARENT_NUM
values
b.MULT_ANMW_MULTIPLE_CODE,
b.MULT_AUTH_REQUIRED,
b.MULT_JMW_MULTIPLE_TYPE_CODE,
b.MULT_LINK_MULTIPLE_NUM,
b.MULT_MULTIPLE_NUM,
b.MULT_NAME,
b.MULT_PROM_AUTH_REQUIRED,
b.MULT_SELECTED_MULTIPLE,
-- NEW FIELDS ON I-KNOW
b.MULT_ACTIVE_FLAG,
b.MULT_CHANNEL_NUM,
-- 711-- parent to have parent_num group name of link multiple code
( select nvl(MGrp_num, 0)
from [email protected]
--where MGrp_PARENT_num is not null
--and
where substr(upper(MGrp_DESCRIPTION), 2) = (select MULT_NAME
from por_multiple p
where p.mult_link_multiple_code = B.MULT_LINK_MULTIPLE_num)
update [email protected]
set
MULT_PARENT_num = ( select nvl(MGrp_num, 0)
from bidsaMULTIPLE_GROUPS
where MGrp_PARENT_num is not null
and substr(upper(MGrp_DESCRIPTION), 2) = MULT_NAME
MULT_CHANNEL_num = nvl(MULT_JMW_MULTIPLE_TYPE_CODE, 0),
MULT_ACTIVE_FLAG = 'Y'
where
MULT_PARENT_num is null;
else
update [email protected] p
set mult_active_flag = 'N'
where p.mult_multiple_num = :old.mult_multiple_code;
END IF;
EXCEPTION
WHEN OTHERS THEN
RAISE_APPLICATION_ERROR(-20010,'Error when writing to i-know multiple '||SQLERRM||' '||SQLCODE);
END POR_TRG_POP_IKNOW_MULTIPLE;What am I doing wrong?Definitions bleow.
Performanve fine - source table rarelyy changed - a temporary solution until the source system replaced with desination system.
Error:
Error when writing to multiple (sourec table) ORA-01008 - not all variables bound ORA-02063 - preceding line form bisapprd.
- 1008 error during execution of trigger
Source table upon which trigger acting
-- Create table
create table POR_MULTIPLE
mult_multiple_code NUMBER(4) not null,
mult_name VARCHAR2(20) not null,
mult_selected_multiple VARCHAR2(1) not null,
mult_anmw_multiple_code VARCHAR2(3),
mult_link_multiple_code NUMBER(4),
mult_jmw_multiple_type_code VARCHAR2(3),
mult_auth_required VARCHAR2(1),
mult_prom_auth_required VARCHAR2(1)
)Destination tables being inserted into
create table POR_MULTIPLE
mult_multiple_num NUMBER(4) not null,
mult_name VARCHAR2(20) not null,
mult_selected_multiple VARCHAR2(1) not null,
mult_anmw_multiple_code VARCHAR2(3),
mult_link_multiple_num NUMBER(4),
mult_jmw_multiple_type_code VARCHAR2(3),
mult_auth_required VARCHAR2(1),
mult_prom_auth_required VARCHAR2(1),
mult_parent_num NUMBER(4),
mult_channel_num NUMBER(4),
mult_active_flag VARCHAR2(1) not null
create table MULTIPLE_GROUPS
mgrp_num NUMBER(4) not null,
mgrp_description VARCHAR2(40) not null,
mgrp_parent_num NUMBER(4)
) -
RE:ora-28500 when trying to insert into SQL Server table
Hi all!
I'm getting this when i attempt to insert into my table test in a SQL Server database. As u can see from the select, the database link seems ok. Any ideas plz. Thnx..
SQL> select "idAges" from test@try2;
no rows selected
SQL> insert into test@try2 ("idAges","nARAges","nAPAges") values(10,'','');
insert into test@try2 ("idAges","nARAges","nAPAges") values(10,'','')
ERROR at line 1:
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
[Generic Connectivity Using ODBC][Microsoft][ODBC SQL Server Driver][SQL
Server]Cannot insert explicit value for identity column in table 'test' when
IDENTITY_INSERT is set to OFF. (SQL State: 23000; SQL Code: 544)
ORA-02063: preceding 2 lines from TRY2IDENTITY_INSERT on works only for particular session and for one table. It's not global variable.
The only idea what I have is to create link from MS Sql to Oracle (right now You have oracle ->ms sql)and then before insert You will set identity_insert on and will run insert. -
Inserting into a table which is created "on the fly" from a trigger
Hello all,
I am trying to insert into a table from a trigger in Oracle form. The table name however, is inputted by the user in am item form.
here is what the insert looks like:
insert into :table_name
values (:value1, :value2);
the problem is that forms does not recognize ::table_name. If I replace :table_name with an actual database table, it works fine. However, I need to insert to a table_name based from oracle form item.
By the way, the table|_name is built on the fly using a procedure before I try to insert into it.
Any suggestion on how can I do that? My code in the trigger is:
declare
dm_drop_tbl(:table_name,'table) // a call to an external procedure to drop the table
dm_create_tbl(:table_name,'att1','att2');
insert into :table_name
values (:value1, :value2);
this give me an error:
encounter "" when the symbol expecting one.....Hi ,
You should use the FORMS_DDL built_in procedure. Read the on-line documentation of forms ...
Simon -
Error when inserting into dynamically created filename-file
Howry
Am am receiving the following error when i am trying to insert into a file that have a dynamic filename (through declared variable, as date etc.).
I presume it is trying to look for the target file with the same name as the dynamic value passed through by the variable, but cannot find it- can anyone tell me how i can rather create the file as appose to insert into an already created file..?
Your help in this regard is much appreciated.
Here is the error:
ODI-1217: Session SAPO_hlr_suburbs (1577001) fails with return code 7000.
ODI-1226: Step 6_Ins_final fails after 1 attempt(s).
ODI-1240: Flow 6_Ins_final fails while performing a Integration operation. This flow loads target table #l_date.unl.
ODI-1228: Task 6_Ins_final (Integration) fails on the target FILE connection SAPO_HLR_SUBURBS.
Caused By: java.sql.SQLException: File C:\Files\Gero work\ODI In Files\SAPO_HLR_SUBURBS/2012-01-24 12:06:13.463.unl was not found
at com.sunopsis.jdbc.driver.file.FileConnection.prepareForWriting(FileConnection.java:339)
at com.sunopsis.jdbc.driver.file.impl.commands.CommandInsert.execute(CommandInsert.java:50)
at com.sunopsis.jdbc.driver.file.CommandExecutor.executeCommand(CommandExecutor.java:33)
at com.sunopsis.jdbc.driver.file.FilePreparedStatement.executeUpdate(FilePreparedStatement.java:138)
at com.sunopsis.sql.SnpsQuery.executeUpdate(SnpsQuery.java:665)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.executeUpdate(SnpSessTaskSql.java:3218)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execStdOrders(SnpSessTaskSql.java:1785)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java:2805)
at com.sunopsis.dwg.dbobj.SnpSessTaskSqlI.treatTaskTrt(SnpSessTaskSqlI.java:68)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2515)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:534)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:449)
at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:1954)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$2.doAction(StartSessRequestProcessor.java:322)
at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:224)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:246)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$0(StartSessRequestProcessor.java:237)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$StartSessTask.doExecute(StartSessRequestProcessor.java:794)
at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:114)
at oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$2.run(DefaultAgentTaskExecutor.java:82)
at java.lang.Thread.run(Thread.java:619)What operating system are you using?
The name of your file has the time within it , you cant have a filename with ':' in it on Windows.
Try using ALPHANUMERIC datatype for the variable and pull the current datetime as a char with something like :
select to_char( sysdate ,'YYYY-MM_DD HHMISS') from dual -
Insert into CLOB fails with Oracle ODBC driver version 9.02.00.65
I tried to insert into CLOB using the latest Oracle ODBC driver 9.02.00.65 and it fails. But the same works with earlier versions of ODBC driver earlier to 9.02.00.65 ie., 9.02.00.63.
Here is the code snippet I tried. Any help now is highly appreciated as I am in the crunch time.
I tried the same code snippet with VARCHAR2 column with the same driver and it works.
** CONVDSN.C - This is the ODBC sample code for
** creating File DSN pointers to machine DSNs.
**This code is furnished on an as-is basis as part of the ODBC SDK and is
**intended for example purposes only.
#include <windows.h>
#include <stdio.h>
#include <tchar.h>
#include <sql.h>
#include <sqlext.h>
#include <odbcinst.h>
#include <sqltypes.h>
#define MAXDATALEN 25 //maximum data length per column
#define MAX_COL 15 //maximum column in result set
#define MAX_ROW 100 //maximum number of rows
#define MAXBUFLEN 256
#define SQLERR_FORMAT "SQL Error State:%s, Native Error Code: %lX, ODBC Error: %s"
#define MAXDISPLAYSIZE MAX_COL*(MAXDATALEN+1)
#define SQLWRNMSGTITLE "SQL_SUCCESS_WITH_INFO results"
#define SQLERRCNTDTITLE "SQL_ERROR results continued"
#define SQLWRNMSGTITLE "SQL_SUCCESS_WITH_INFO results"
#define SQLWRNCNTDTITLE "SQL_SUCCESS_WITH_INFO results continued"
#define NULLDATASTRING "SQL_NULL_DATA"
#define SQLERRMSGTITLE "SQL_ERROR results"
// prototypes
void ExpandFileName(LPSTR szFileDSNName, LPCSTR szDSNName);
void MakeLegalName(LPSTR szLegalDSNName, LPCSTR szDSNName);
// main routine: Iterate through the user and system DSNs, creating a pointer
// to each.
void FAR PASCAL DisplayError(SQLRETURN nResult, HWND hWnd, SWORD fHandleType, SQLHANDLE handle);
void insertSelectClob();
void checkRcCode(RETCODE rc);
int main (int argc, char* argv[])
insertSelectClob();
return 0;
void FAR PASCAL DisplayError(SQLRETURN nResult, HWND hWnd, SWORD fHandleType, SQLHANDLE handle)
UCHAR szErrState[SQL_SQLSTATE_SIZE+1]; // SQL Error State string
UCHAR szErrText[SQL_MAX_MESSAGE_LENGTH+1]; // SQL Error Text string
char szBuffer[SQL_SQLSTATE_SIZE+SQL_MAX_MESSAGE_LENGTH+MAXBUFLEN+1];
// formatted Error text Buffer
SWORD wErrMsgLen; // Error message length
UDWORD dwErrCode; // Native Error code
int iSize; // Display Error Text size
SQLRETURN nErrResult; // Return Code from SQLGetDiagRec
SWORD sMsgNum = 1;
SWORD fFirstRun = TRUE;
char szDispBuffer[MAXDISPLAYSIZE+1]; // Display Buffer
szBuffer[0] = '\0';
do
// continue to bring messageboxes till all errors are displayed.
// more than one message box may be reqd. as err text has fixed
// string size.
// initialize display buffer with the string in error text buffer
strcpy(szDispBuffer, szBuffer);
// call SQLGetDiagRec function with proper ODBC handles, repeatedly until
// function returns SQL_NO_DATA. Concatenate all error strings
// in the display buffer and display all results.
while ((nErrResult = SQLGetDiagRec(fHandleType, handle, sMsgNum++,
szErrState, &dwErrCode, szErrText,
SQL_MAX_MESSAGE_LENGTH-1, &wErrMsgLen)) != SQL_NO_DATA)
if(nErrResult == SQL_ERROR || nErrResult == SQL_INVALID_HANDLE)
break;
wsprintf(szBuffer, SQLERR_FORMAT, (LPSTR)szErrState, dwErrCode, (LPSTR)szErrText);
iSize = strlen(szDispBuffer);
if (iSize && (iSize+strlen(szBuffer)+1) >= MAXDISPLAYSIZE)
break;
if (iSize)
strcat(szDispBuffer, "\n");
strcat(szDispBuffer, szBuffer);
// display proper ERROR or WARNING message with proper title
if (nResult == SQL_SUCCESS_WITH_INFO)
MessageBox(hWnd, szDispBuffer, (fFirstRun? SQLWRNMSGTITLE : SQLWRNCNTDTITLE),
MB_OK | MB_ICONINFORMATION);
else
MessageBox(hWnd, szDispBuffer, (fFirstRun? SQLERRMSGTITLE : SQLERRCNTDTITLE),
MB_OK | MB_ICONEXCLAMATION);
if (fFirstRun)
fFirstRun = FALSE;
while (!(nErrResult == SQL_NO_DATA || nErrResult == SQL_ERROR || nErrResult == SQL_INVALID_HANDLE));
void insertSelectClob()
SQLCHAR clobdata[1001];
SQLCHAR resultdata[1001];
SQLINTEGER ind = SQL_DATA_AT_EXEC;
SQLCHAR *bufp;
SQLINTEGER cbOrderID = sizeof(SQLSMALLINT);
SQLSMALLINT sTmp=13;
SQLCHAR *sqlStmt1 = _T("INSERT INTO clobtbl(id, clob1) VALUES(?, ?)");
SQLCHAR *sqlStmt2 = _T("SELECT id, clob1 FROM clobtbl");
// SQLCHAR *sqlStmt1 = _T("INSERT INTO testInsert(id, clob1) VALUES(?, ?)");
// SQLCHAR *sqlStmt2 = _T("SELECT id, clob1 FROM testInsert");
int clobdatalen, chunksize, dtsize, retchklen;
HENV envHnd;
HDBC conHnd;
HSTMT stmtHnd;
RETCODE rc;
int nRowcnt=0;
SQLPOINTER pToken = NULL;
rc = SQL_SUCCESS;
// ENV is allocated
rc = SQLAllocEnv(&envHnd);
// Connection Handle is allocated
rc = SQLAllocConnect(envHnd, &conHnd);
rc = SQLConnect(conHnd, T("testd734"), SQLNTS, T("ipathdba"), SQLNTS, T("ipathdba"), SQLNTS);
printf(_T("Insert CLOB1 using SQLPutData...\n[%s]\n"), sqlStmt1);
// Set CLOB Data
int i;
SQLCHAR ch;
for (i=0, ch=_T('A'); i< sizeof(clobdata)/sizeof(SQLCHAR); ++i, ++ch)
if (ch > _T('Z'))
ch = _T('A');
clobdata[i] = ch;
clobdata[sizeof(clobdata)/sizeof(SQLCHAR)-1] = _T('\0');
clobdatalen = lstrlen(clobdata); // length of characters
chunksize = clobdatalen / 7; // 7 times to put
rc = SQLAllocHandle(SQL_HANDLE_STMT, conHnd, &stmtHnd);
// Step 1: Prepare
rc = SQLPrepare(stmtHnd, sqlStmt1, SQL_NTS);
// checkSQLErr(envHnd, conHnd, stmtHnd, rc);
// Step 2: Bind Parameter with SQL_DATA_AT_EXEC
rc = SQLBindParameter(stmtHnd,
1,
SQL_PARAM_INPUT,
SQL_C_SSHORT,
SQL_INTEGER,
0,
0,
&sTmp,
0,
&cbOrderID);
rc = SQLBindParameter(stmtHnd,
2,
SQL_PARAM_INPUT,
SQL_C_CHAR,
SQL_LONGVARCHAR,
clobdatalen*sizeof(CHAR),
0,
(SQLPOINTER)clobdata,
clobdatalen*sizeof(CHAR),
&ind);
// checkSQLErr(envHnd, conHnd, stmtHnd, rc);
// Step 3: Execute
rc = SQLExecute(stmtHnd);
while (rc == SQL_NEED_DATA) {
rc = SQLParamData(stmtHnd, &pToken);
if (rc == SQL_NEED_DATA) {
for (dtsize=0, bufp = clobdata;
dtsize < clobdatalen;
dtsize += chunksize, bufp += chunksize)
int len;
if (dtsize+chunksize < clobdatalen)
len = chunksize;
rc = SQLPutData(stmtHnd, bufp, len*sizeof(SQLCHAR));
else
len = clobdatalen-dtsize;
rc = SQLPutData(stmtHnd, bufp, SQL_NTS);
rc = SQLParamData(stmtHnd, &pToken);
// Fails as row count retrieved is zero.
rc = SQLRowCount(stmtHnd, &nRowcnt);
if(rc != SQL_SUCCESS)
DisplayError(rc, NULL, SQL_HANDLE_ENV, conHnd);
rc = SQLFreeStmt(stmtHnd, SQL_CLOSE);
printf(_T("Finished Update\n\n"));
rc = SQLAllocStmt(conHnd, &stmtHnd);
if (rc != SQL_SUCCESS)
printf(_T("Failed to allocate STMT\n"));
exit(-1);
// Clear Result Data
memset(resultdata, 0, sizeof(resultdata));
chunksize = clobdatalen / 15; // 15 times to gut
rc = SQLExecDirect(stmtHnd, sqlStmt2, SQL_NTS); // select
if(rc != SQL_SUCCESS)
DisplayError(rc, NULL, SQL_HANDLE_ENV, conHnd);
// Step 2: Fetch
rc = SQLFetch(stmtHnd);
for(dtsize=0, bufp = resultdata;
dtsize > sizeof(resultdata)/sizeof(CHAR) && rc != SQL_NO_DATA;
dtsize += chunksize-1, bufp += chunksize-1)
int len; // len should contain the space for NULL termination
if (dtsize+chunksize<sizeof(resultdata)/sizeof(CHAR))
len = chunksize;
else
len = sizeof(resultdata)/sizeof(CHAR)-dtsize;
// Step 3: GetData
rc = SQLGetData(stmtHnd,
2,
SQL_C_CHAR,
(SQLPOINTER)bufp,
len*sizeof(CHAR),
&retchklen);
if (!_tcscmp(resultdata, clobdata))
printf(_T("Succeeded!!\n\n"));
else
printf(_T("Failed!!\n\n"));
if (conHnd)
SQLFreeConnect(conHnd);
if (envHnd)
SQLFreeEnv(envHnd);
}Hi,
Since 9.2 has been desupported for error correction you will not be able to download that version from OTN. You should ask whoever is providing the training if their is an alternate version you can use. The only versions that you will be able to download from oracle.com is 10.2 11.1, and 11.2. -
Oracle 10g performance degrades while concurrent inserts into a table
Hello Team,
I am trying to insert into single table via multiple threads, Some of these threads perform reasonably well but some will take really longer time, As the time goes on performance drastically degrades (even down by 500 to 600 times). With AWR report i see that there quite huge number of buffer gets there. I am not sure how can i reduce those. If i ran on a single thread this operation is consistent.
I tried quite a few options like
1. Increasing SGA Memory
2. Moving redo logs to another disk drive.
3. Trying it on a empty table
4. Trying it on a table which has huge data (4 Million rows)
5. I have even tried partitioning the table with HASH algoritm
Note: Each thread i am pupming equal amount of data (let say 25K rows).
Can any body suggest me a clue what could be the culprit here.
Thanks in Advance
Satish Kumar Ballepuuser11150696 wrote:
Can you please guide me how do i do that, I am not aware of how to generate explain plan for that query.Since you have the trace file already (and I don't mean the tkprof output), you could do the following:
Read the trace file to find the statement you're interested id - the line above it will be a +"PARSING"+ line, and will include a reference to the statement hash_value look like +'hv=3838377475845'+.
Use the hash_value to query v$sql to get the sql_id and child_number;
Use the sql_id and child number in a call to dbms_xplan.display_cursor:
PARSING IN CURSOR #7 len=68 dep=0 uid=55 oct=3 lid=55 tim=448839952404 *hv=3413100263* ad='2f6ede48'
select ... etc. (the statement I want the plan for)
SQL> select sql_id , child_number from v$sql where hash_value = *3413100263*;
SQL_ID CHILD_NUMBER
053tyaz5qzjr7 0
SQL> select * from table(dbms_xplan.display_cursor(*'053tyaz5qzjr7'*,*0*));
PLAN_TABLE_OUTPUT
SQL_ID 053tyaz5qzjr7, child number 0
select /*+ use_concat */ small_vc from t1 where n1 = 1 or n2 = 2
Plan hash value: 82564388
| Id | Operation | Name | Rows | Bytes | Cost |
| 0 | SELECT STATEMENT | | | | 4 |
| 1 | CONCATENATION | | | | |
| 2 | TABLE ACCESS BY INDEX ROWID| T1 | 10 | 190 | 2 |
|* 3 | INDEX RANGE SCAN | T1_N2 | 10 | | 1 |
|* 4 | TABLE ACCESS BY INDEX ROWID| T1 | 10 | 190 | 2 |
|* 5 | INDEX RANGE SCAN | T1_N1 | 10 | | 1 |
Predicate Information (identified by operation id):
3 - access("N2"=2)
4 - filter(LNNVL("N2"=2))
5 - access("N1"=1)
Note
- cpu costing is off (consider enabling it)Regards
Jonathan Lewis
http://jonathanlewis.wordpress.com
http://www.jlcomp.demon.co.uk
"For every expert there is an equal and opposite expert."
Arthur C. Clarke
To post code, statspack/AWR report, execution plans or trace files, start and end the section with the tag {noformat}{noformat} (lowercase, curly brackets, no spaces) so that the text appears in fixed format. -
How to INSERT INTO a specific row?
I have a form with a calendar at the top, below it is a list of items each with a check box.
Here is a wonderful visual of it -
Calendar
Checkbox | Col | Col | Col
Checkbox | Col | Col | Col
Checkbox | Col | Col | Col
I want it so you select the date and it gets passed into the database in the same row as the one (definitely one, multiple is better) that has been checked by the user.
I was trying an INSERT INTO with a WHERE statement but apparently you can't do that. So if I can use a WHERE with INSERT INTO, how can I identify which row to insert the info?
Currently it is passing the dates but it creates a new row.
I didn't think posting the code is neccisary for this question but if anyone wants to see it let me know and I will post it.
THANKS!Ah, ok, I will try UPDATE.
Right now my form looks like this...
<cfform name="requestform" role="form"action="resources/requestform.cfm" method="post" width="375" height="350" >
<label for="startdate">Start Date:</label>
<label for="enddate">Finish Date:</label>
<cfcalendar name="selectedDate"
selectedDate="#Form.selectdate#"
startRange="#Form.startdate#"
endRange="#Form.enddate#"
mask="mmm dd, yyyy"
dayNames="SU,MO,TU,WE,TH,FR,SA"
firstDayOfWeek="1"
monthNames="JAN, FEB, MAR, APR, MAY, JUN, JUL, AUG, SEP, OCT, NOV, DEC"
style="rollOverColor:##FF0000"
width="200" height="150">
<cfinput type="dateField" name="startdate" label="Start Date" width="100" value="#Form.startdate#">
<cfinput type="dateField" name="enddate" label="End Date" width="100" value="#Form.enddate#">
</div>
<cfinclude
template = "resources/query.cfm">
<span class="label label-default">Equipment List</span>
<table class="table table-bordered table-striped">
<tr>
<td><b>Select</b></td>
<td><b>Name</b></td>
<td><b>Description</b></td>
<td><b>Status</b></td>
</tr>
<cfloop query = "equiplist">
<cfoutput>
<tr>
<td>
<cfinput name="status" type="checkbox" value="#serial#">Select:</cfinput>
<cfinput name="serial"type="text"style="display:none" value="#serial#">
</td>
<td>#name#</td>
<td>#descrip#</td>
<td>#status#</td>
</tr>
</cfoutput>
</cfloop>
</table>
<cfinput class="btn btn-default" type="Submit" value="Submit" name="addsubmit"></cfinput>
</cfform>
And the action page looks like this...
<cfquery
name = "requestform"
dataSource = "db_cie">
UPDATE equip
SET STATUS="Out",
WHERE serial='#status#'
</cfquery>
<cflocation
url = "../request.cfm">
But I am getting an error "invalid.user.table.column, table.column, or table specification. But the error message shows the SQL output and it looks correct...UPDATE equip SET STATUS="Out" WHERE serial="325255"... it IS getting the serial number variable passed from the form. ...No update though. Is my action form written wrong? -
Probelm regarding insert into long datatype column
hi all ,
in one of my table one column's datatype is long and i want to insert a value into this column but getting following error
ora-1461 :- can bind a LONG value only for insert into a long column
please help me
any help appriciatedShow us the code...?
Looks like you are trying to insert into the wrong column. -
ORA-01461: can bind a LONG value only for insert into a LONG colu
Hello - I have a variable defined in a package as VARCHAR2(32720). This is not a table column. I am building a string inside the vairable, loading in invoice data in sections one at a time. It seems that once I get a larger number of invoices (say 100+) to load in, I get the "ORA-01461: can bind a LONG value only for insert into a LONG column" error. I am not trying to insert into a table column; just stringing together data in this large variable.
Why would I be getting this error ? And is there a workaround ? The variable is read back out iin 80 byte strings which are then loaded to a table column that is varchar2(80).
Thanks !!
Jim Ernst
Invacare CorporationHere is the definition of the field:
l_EDI820_Data VARCHAR2(32720);
And here is the loop used to populate the field. As i mentioned, it seems that once the process gets over 100 invoices coming in that the field hits the error; seems as if we are hitting say 4000 characters or near it at that point...
FOR r_INVOICE_DETAIL IN cr_INVOICE_DETAILS LOOP
l_EDI820_Data := l_EDI820_Data
||l_RMR_Statement
||r_INVOICE_DETAIL.INVOICE_NUM
||'*PI*'
||LTRIM(TO_CHAR(NVL(r_INVOICE_DETAIL.PAYMENT_AMOUNT,0))) -- Net Amount to be applied
||'*'
||LTRIM(TO_CHAR(r_INVOICE_DETAIL.INVOICE_AMOUNT,'999999.99')) -- Gross Amount
||l_Delimiter;
l_TOTAL_SEGMENTS := l_TOTAL_SEGMENTS + 1;
END LOOP; -- r_INVOICE_DETAIL
There are some other statements that are adding additional data onto l_EDI820_Data ; this one is the loop that is basedon the invoices coming in.
This code writes it to the table (field EDI820_DATA in the table is VARCHAR2(94)):
l_EDI820_String_Length := LENGTH(RTRIM(l_EDI820_Data));
l_EDI820_SUBSTR_START := 1;
l_RECORD_SEQ_NO := 1;
WHILE SUBSTR(l_EDI820_Data, l_EDI820_SUBSTR_START, 80) <> ' ' LOOP
INSERT INTO XXAP_NACHA_EDI820_GTEMP_TBL
SELECTED_CHECK_ID
,EDI820_SEQ
,EDI820_DATA
VALUES (
r_CHECK_IDS.SELECTED_CHECK_ID
,l_RECORD_SEQ_NO
,'705'||SUBSTR(l_EDI820_Data, l_EDI820_SUBSTR_START, 80)
-- * Increment starting point for substring and also record sequence number
l_EDI820_SUBSTR_START := l_EDI820_SUBSTR_START + 80;
l_RECORD_SEQ_NO := l_RECORD_SEQ_NO + 1;
END LOOP; -- WHILE Loop -
Insert into different database - same server
What do I need to do to insert values into a table in a database on the same server?
I have databases A and B. I have a procedure in Database B that needs to insert a record into a table in Database A. I tried qualifying:
Insert into DataBaseA.SchemaA.tableA (fields..) Values (values...); but that didn't work. I saw something on creating a link but I didn't quite understand it and all of the posts I have read haven't really given a clear syntax usage.
Can anyone help? I also don't know the table to insert into until the procedure is run so I can't create anything "static".
Thanks,
GregHi Greg,
You have to create a database link. Go through the following link for details:
http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96540/statements_56a.htm#SQLRF01205
Please let me know if you still have any concern.
Regards
Ghulam -
Running INSERT into SQL Server using Heterogeneous Services
I am running into a show stopping issue trying to insert into a SQL Server table via Oracle.
Basically, I have my Heterogeneous Services set up correctly and I am able to hit the SQL Server database with my INSERT statement. But what is happening is I seem to be manually controlly row locks. I believe HS is issuing the following to the server before my INSERT statement is run:
SET TRANSACTION ISOLATION LEVEL READ COMMITTED
SET IMPLICIT_TRANSACTIONS ON
Also, it does not seem that I ever issue the COMMIT TRANSACTION
command. This leaves the row locked forever... unable to complete the
insert generating an error and not inserting my record.
I would GREATLY appreciate any help you could provide, this is a critical issue.
Thanks in advance,
ivalum21ORA-02047: cannot join the distributed transaction in progress
ORA-06512: at "MY_PACKAGE_NAME", line 263
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
[Generic Connectivity Using ODBC]DRV_Execute: DB_ODBC_ENGINE (1645): ;
[Microsoft][ODBC SQL Server Driver][SQL Server]Disallowed implicit conversion
from data type varchar to data type money, table 'tableA',
column 'total_amount'. Use the CONVERT function to run this query. (SQL
State: 37000; SQL Code: 260)
ORA-02063: preceding 2 lines from SQLSERVER_LINK
ORA-06512: at "RCDTPUMP.CAMPUSCALL_DATAPUMP_UNI", line 875
ORA-06512: at "RCDTPUMP.CAMPUSCALL_DATAPUMP_UNI", line 791
ORA-06512: at "RCDTPUMP.CAMPUSCALL_DATAPUMP_UNI", line 1156
ORA-06512: at line 1
That is what I get when I take out the TO_NUMBER()
Message was edited by:
ivalum21 -
Problem Inserting into object view with OracleXmlSave
Gurus,
I'm trying to insert into an object view with
multiple collections of objects representing a master/detail relationship and a CLOB column, but I've this error:
oracle.xml.sql.OracleXMLSQLException: Error Interno
at oracle.xml.sql.dml.OracleXMLSave.saveXML(OracleXMLSave.java:1967)
at oracle.xml.sql.dml.OracleXMLSave.insertXML(OracleXMLSave.java:1060)
at onix.interface_isbn.OnixXmlLoader.doInsert(OnixXmlLoader.java:165)
at onix.interface_isbn.OnixXmlLoader.setLoader(OnixXmlLoader.java, Compiled Code)
at onix.interface_isbn.OnixXmlLoader.<init>(OnixXmlLoader.java:23)
at onix.interface_isbn.correrLoader.main(correrLoader.java:77)
I'm using OracleXmlSave with insertXML method to do this.
Is There any limitations to do that? (example
number of tables into the view, columns datatype).
I'd appreciate any comments
ThankNo known limitations. Please post the sample DDL to create your object types and object view, along with an example of the example XML document you're trying to insert.
Maybe you are looking for
-
In my report i need to show some text like "Manual & Basic are included". So i have written this into static text view, included view in compound layout. But when i trying print this report in PDF format it is giving me error "Sax Parser returned an
-
Weird Artifactin​g with Windows Live Messenger
So, I noticed that I get some artifacting with Windows Live Messenger's notifications after restoring my W520 to its factory settings again. I got angry at it and restored it to factory settings again, and it is still present. Yes, I've tried updatin
-
Hi When i was dooing forms Tracking (C- Forms),after saving i got the following message saying that Data was updated Message no. 8I425 data was updated means ,Actually where is updated. Can any one tell me ,this is urgent in My Client Place Regards M
-
Finished goods procurement - Not htrough Third party order
Hi The scenario: The client purchases some Finished goods,which they are not manufacturing, directly from vendor, (i.e.) the sale sorder requirement for some Finished goods are directly procured from vendor and they require those items to be receipte
-
Why do I have to keep re-loading my Adobe Flashplayer
Hi everyone, when I shut down my computer for the evening after using Adobe Flashplayer to watch various video's, next day when I re-open my computer, I get a message that I need to install Adobe Flashplayer, even though it was working okay on the pr