Hi,
I am interested in participating in the study. The population is a
relatively small nursing home patient population of ~5,000 folks. The
data is stored in Oracle. I tried to run the study package and ran into
several difficulties with table names and characters (see listing
below). Did you have success with Oracle CDMs in your last study? Any
suggestions for how to proceed?
Thanks,
-Rich
> # Create the parameterized SQL files:
> htnSqlFile <-
renderStudySpecificSql("HTN12mo",minCellCount,cdmSchema,resultsSchema,sourceName,dbms)
Created file 'TxPath autoTranslate oracle HTN12mo.sql'
Warning messages:
1: In translateSql(renderedSql, sourceDialect = "sql server",
targetDialect = dbms) :
sourceDialect argument is deprecated in the translateSql function in
SqlRender. Please update your code
2: In translateSql(renderedSql, sourceDialect = "sql server",
targetDialect = dbms) :
Temp table name '#HTN12mo_drug_seq_summary' is too long. Temp table
names should be shorter than 22 characters to prevent Oracle from crashing.
> t2dmSqlFile <-
renderStudySpecificSql("T2DM12mo",minCellCount,cdmSchema,resultsSchema,sourceName,dbms)
Created file 'TxPath autoTranslate oracle T2DM12mo.sql'
Warning messages:
1: In translateSql(renderedSql, sourceDialect = "sql server",
targetDialect = dbms) :
sourceDialect argument is deprecated in the translateSql function in
SqlRender. Please update your code
2: In translateSql(renderedSql, sourceDialect = "sql server",
targetDialect = dbms) :
Temp table name '#T2DM12mo_drug_seq_summary' is too long. Temp table
names should be shorter than 22 characters to prevent Oracle from crashing.
> depSqlFile <-
renderStudySpecificSql("Depression12mo",minCellCount,cdmSchema,resultsSchema,sourceName,dbms)
Created file 'TxPath autoTranslate oracle Depression12mo.sql'
Warning messages:
1: In translateSql(renderedSql, sourceDialect = "sql server",
targetDialect = dbms) :
sourceDialect argument is deprecated in the translateSql function in
SqlRender. Please update your code
2: In translateSql(renderedSql, sourceDialect = "sql server",
targetDialect = dbms) :
Temp table name '#Depression12mo_drug_seq_summary' is too long. Temp
table names should be shorter than 22 characters to prevent Oracle from
crashing.
3: In translateSql(renderedSql, sourceDialect = "sql server",
targetDialect = dbms) :
Temp table name '#Depression12mo_IndexCohort' is too long. Temp table
names should be shorter than 22 characters to prevent Oracle from crashing.
4: In translateSql(renderedSql, sourceDialect = "sql server",
targetDialect = dbms) :
Temp table name '#Depression12mo_indexcohort' is too long. Temp table
names should be shorter than 22 characters to prevent Oracle from crashing.
5: In translateSql(renderedSql, sourceDialect = "sql server",
targetDialect = dbms) :
Temp table name '#Depression12mo_drug_seq' is too long. Temp table
names should be shorter than 22 characters to prevent Oracle from crashing.
6: In translateSql(renderedSql, sourceDialect = "sql server",
targetDialect = dbms) :
Temp table name '#Depression12mo_matchcohort' is too long. Temp table
names should be shorter than 22 characters to prevent Oracle from crashing.
7: In translateSql(renderedSql, sourceDialect = "sql server",
targetDialect = dbms) :
Temp table name '#Depression12mo_MatchCohort' is too long. Temp table
names should be shorter than 22 characters to prevent Oracle from crashing.
>
> # Execute the SQL:
> conn <- connect(connectionDetails)
Connecting using Oracle driver
- using THIN to connect
> executeSql(conn,readSql(htnSqlFile))
|== | 2%Error: Error executing SQL:
java.sql.SQLSyntaxErrorException: ORA-00911: invalid character
ORA-06512: at line 7
An error report has been created at C:/Users/boycerd_adm/Study 2 -
Treatment Pathways 12mo/R Version/errorReport.txt
> executeSql(conn,readSql(t2dmSqlFile))
|== | 2%Error: Error executing SQL:
java.sql.SQLSyntaxErrorException: ORA-00911: invalid character
ORA-06512: at line 7
An error report has been created at C:/Users/boycerd_adm/Study 2 -
Treatment Pathways 12mo/R Version/errorReport.txt
> executeSql(conn,readSql(depSqlFile))
|== | 2%Error: Error executing SQL:
java.sql.SQLSyntaxErrorException: ORA-00911: invalid character
ORA-06512: at line 7
An error report has been created at C:/Users/boycerd_adm/Study 2 -
Treatment Pathways 12mo/R Version/errorReport.txt
>
> # Extract tables to CSV files:
> extractAndWriteToFile(conn, "summary", resultsSchema, sourceName,
"HTN12mo", dbms)
Error: Error executing SQL:
java.sql.SQLSyntaxErrorException: ORA-00933: SQL command not properly ended
An error report has been created at C:/Users/boycerd_adm/Study 2 -
Treatment Pathways 12mo/R Version/errorReport.txt
In addition: Warning messages:
1: In renderSql(parameterizedSql, cdmSchema = cdmSchema, resultsSchema =
resultsSchema, :
Parameter 'cdmSchema' not found in SQL
2: In translateSql(renderedSql, sourceDialect = "sql server",
targetDialect = dbms) :
Show Traceback
Rerun with Debug
Error: Error executing SQL:
java.sql.SQLSyntaxErrorException: ORA-00933: SQL command not properly ended
An error report has been created at C:/Users/boycerd_adm/Study 2 -
Treatment Pathways 12mo/R Version/errorReport.txt >
extractAndWriteToFile(conn, "person_cnt", resultsSchema, sourceName,
"HTN12mo", dbms)
Error: Error executing SQL:
java.sql.SQLSyntaxErrorException: ORA-00933: SQL command not properly ended
An error report has been created at C:/Users/boycerd_adm/Study 2 -
Treatment Pathways 12mo/R Version/errorReport.txt
In addition: Warning messages:
1: In renderSql(parameterizedSql, cdmSchema = cdmSchema, resultsSchema =
resultsSchema, :
Parameter 'cdmSchema' not found in SQL
2: In translateSql(renderedSql, sourceDialect = "sql server",
targetDialect = dbms) :
Show Traceback
Rerun with Debug
Error: Error executing SQL:
java.sql.SQLSyntaxErrorException: ORA-00933: SQL command not properly ended
An error report has been created at C:/Users/boycerd_adm/Study 2 -
Treatment Pathways 12mo/R Version/errorReport.txt >
extractAndWriteToFile(conn, "seq_cnt", resultsSchema, sourceName,
"HTN12mo", dbms)
Error: Error executing SQL:
java.sql.SQLSyntaxErrorException: ORA-00933: SQL command not properly ended
An error report has been created at C:/Users/boycerd_adm/Study 2 -
Treatment Pathways 12mo/R Version/errorReport.txt
In addition: Warning messages:
1: In renderSql(parameterizedSql, cdmSchema = cdmSchema, resultsSchema =
resultsSchema, :
Parameter 'cdmSchema' not found in SQL
2: In translateSql(renderedSql, sourceDialect = "sql server",
targetDialect = dbms) :
Show Traceback
Rerun with Debug
Error: Error executing SQL:
java.sql.SQLSyntaxErrorException: ORA-00933: SQL command not properly ended
An error report has been created at C:/Users/boycerd_adm/Study 2 -
Treatment Pathways 12mo/R Version/errorReport.txt >
> extractAndWriteToFile(conn, "summary", resultsSchema, sourceName,
"T2DM12mo", dbms)
Error: Error executing SQL:
java.sql.SQLSyntaxErrorException: ORA-00933: SQL command not properly ended
An error report has been created at C:/Users/boycerd_adm/Study 2 -
Treatment Pathways 12mo/R Version/errorReport.txt
In addition: Warning messages:
1: In renderSql(parameterizedSql, cdmSchema = cdmSchema, resultsSchema =
resultsSchema, :
Parameter 'cdmSchema' not found in SQL
2: In translateSql(renderedSql, sourceDialect = "sql server",
targetDialect = dbms) :
Show Traceback
Rerun with Debug
Error: Error executing SQL:
java.sql.SQLSyntaxErrorException: ORA-00933: SQL command not properly ended
An error report has been created at C:/Users/boycerd_adm/Study 2 -
Treatment Pathways 12mo/R Version/errorReport.txt >
extractAndWriteToFile(conn, "person_cnt", resultsSchema, sourceName,
"T2DM12mo", dbms)
Error: Error executing SQL:
java.sql.SQLSyntaxErrorException: ORA-00933: SQL command not properly ended
An error report has been created at C:/Users/boycerd_adm/Study 2 -
Treatment Pathways 12mo/R Version/errorReport.txt
In addition: Warning messages:
1: In renderSql(parameterizedSql, cdmSchema = cdmSchema, resultsSchema =
resultsSchema, :
Parameter 'cdmSchema' not found in SQL
2: In translateSql(renderedSql, sourceDialect = "sql server",
targetDialect = dbms) :
Show Traceback
Rerun with Debug
Error: Error executing SQL:
java.sql.SQLSyntaxErrorException: ORA-00933: SQL command not properly ended
An error report has been created at C:/Users/boycerd_adm/Study 2 -
Treatment Pathways 12mo/R Version/errorReport.txt >
extractAndWriteToFile(conn, "seq_cnt", resultsSchema, sourceName,
"T2DM12mo", dbms)
Error: Error executing SQL:
java.sql.SQLSyntaxErrorException: ORA-00933: SQL command not properly ended
An error report has been created at C:/Users/boycerd_adm/Study 2 -
Treatment Pathways 12mo/R Version/errorReport.txt
In addition: Warning messages:
1: In renderSql(parameterizedSql, cdmSchema = cdmSchema, resultsSchema =
resultsSchema, :
Parameter 'cdmSchema' not found in SQL
2: In translateSql(renderedSql, sourceDialect = "sql server",
targetDialect = dbms) :
Show Traceback
Rerun with Debug
Error: Error executing SQL:
java.sql.SQLSyntaxErrorException: ORA-00933: SQL command not properly ended
An error report has been created at C:/Users/boycerd_adm/Study 2 -
Treatment Pathways 12mo/R Version/errorReport.txt >
> extractAndWriteToFile(conn, "summary", resultsSchema, sourceName,
"Depression12mo", dbms)
Error: Error executing SQL:
java.sql.SQLSyntaxErrorException: ORA-00933: SQL command not properly ended
An error report has been created at C:/Users/boycerd_adm/Study 2 -
Treatment Pathways 12mo/R Version/errorReport.txt
In addition: Warning messages:
1: In renderSql(parameterizedSql, cdmSchema = cdmSchema, resultsSchema =
resultsSchema, :
Parameter 'cdmSchema' not found in SQL
2: In translateSql(renderedSql, sourceDialect = "sql server",
targetDialect = dbms) :
Show Traceback
Rerun with Debug
Error: Error executing SQL:
java.sql.SQLSyntaxErrorException: ORA-00933: SQL command not properly ended
An error report has been created at C:/Users/boycerd_adm/Study 2 -
Treatment Pathways 12mo/R Version/errorReport.txt >
extractAndWriteToFile(conn, "person_cnt", resultsSchema, sourceName,
"Depression12mo", dbms)
Error: Error executing SQL:
java.sql.SQLSyntaxErrorException: ORA-00933: SQL command not properly ended
An error report has been created at C:/Users/boycerd_adm/Study 2 -
Treatment Pathways 12mo/R Version/errorReport.txt
In addition: Warning messages:
1: In renderSql(parameterizedSql, cdmSchema = cdmSchema, resultsSchema =
resultsSchema, :
Parameter 'cdmSchema' not found in SQL
2: In translateSql(renderedSql, sourceDialect = "sql server",
targetDialect = dbms) :
Show Traceback
Rerun with Debug
Error: Error executing SQL:
java.sql.SQLSyntaxErrorException: ORA-00933: SQL command not properly ended
An error report has been created at C:/Users/boycerd_adm/Study 2 -
Treatment Pathways 12mo/R Version/errorReport.txt >
extractAndWriteToFile(conn, "seq_cnt", resultsSchema, sourceName,
"Depression12mo", dbms)
Error: Error executing SQL:
java.sql.SQLSyntaxErrorException: ORA-00933: SQL command not properly ended
An error report has been created at C:/Users/boycerd_adm/Study 2 -
Treatment Pathways 12mo/R Version/errorReport.txt
In addition: Warning messages:
1: In renderSql(parameterizedSql, cdmSchema = cdmSchema, resultsSchema =
resultsSchema, :
Parameter 'cdmSchema' not found in SQL
2: In translateSql(renderedSql, sourceDialect = "sql server",
targetDialect = dbms) :
Show Traceback
Rerun with Debug
Error: Error executing SQL:
java.sql.SQLSyntaxErrorException: ORA-00933: SQL command not properly ended
An error report has been created at C:/Users/boycerd_adm/Study 2 -
Treatment Pathways 12mo/R Version/errorReport.txt >
> dbDisconnect(conn)
Error: could not find function "dbDisconnect"