Quantcast
Channel: Teradata Forums - All forums
Viewing all 27759 articles
Browse latest View live

CREATE TABLE Failed [3737] Name requires more than 30 bytes in LATIN internal form??? - response (3) by ersin.gulbahar

$
0
0

Hi my table name is 26 characters and my column names are not more than 30 chars.
but I got this error :[Error 3737][SQLState 42000] Name requires more than 30 bytes in LATIN


CREATE TABLE Failed [3737] Name requires more than 30 bytes in LATIN internal form??? - response (4) by dnoeth

$
0
0

 

Your tablename is probably too long, when you check http://developer.teradata.com/doc/connectivity/jdbc/reference/current/jdbcug_chapter_2.html#BABIIEAG you'll find
JDBC FastLoad creates two temporary error tables with the following naming convention: ._ERR_1 and ._ERR_2
and
The name of the destination table in the Teradata Database that is to be used by JDBC FastLoad CSV must not exceed 24 characters because of the name of the two error tables created by JDBC FastLoad CSV
If this was a standard FastLoad i would simply add ERRORTABLES and use my own error table names, but this seems not to be available in JDBC FastLoad. So your only option is to create the table with a shorter name, FastLoad it and thensubmit a RENAME TABLE.
 
Dieter

 

Difference between Application RI,Batch RI,explicit & standard RI? - forum topic by Nishant.Bhardwaj

$
0
0

Hi Experts,

 

As we have various types of RI in teradata like Soft RI,application RI ,Batch RI,Explicit RI, Standard RI..

 

I know that  Soft RI  allows the Optimizer to utilize join elimination in the generated

 

plan with out enforcement performed implicitly during the execution of the insert, delete, or update..

 

On the  other hand ,other  RI's  allows the Optimzer to utilize the Join elimination with enforcemenit performed explicilty during Insert/Update & Deletes.

 

I am not sure what are the difference between Application RI,Batch RI,explicit & standard RI as they all fall in the same category.

 

Can any one please elaborate more on this?

 

Cheers!

 

Nishant

 

 

Forums: 

How to Calculate the total IO used by System for a particular week - response (3) by usmans

$
0
0

Thanks Dnoeth, I'll check it out and will get back to you on this.
Cheers

ARCMAIN giving Error 3802:Database '$ARC' does not exist. - forum topic by zigzagdna

$
0
0

I have installed free version of Teradata Express 14.0x few weeks ago. I am trying to run arcmain to archive some database and then eventually restore it to a difrrent database.
 
I am getting error 3802 when running rachive command, no clue why? I am on SUSE Linux ...
#!/bin/ksh
arcmain SESSIONS=8 CATALOG OUTLOG=ARCALLfinancial.log < /root/premfiles/arcmain/arcdatabase.in
 
Folliwng is my arcdatabase.in file:
.LOGON dbccop1/DBC,DBC;
ARCHIVE DATA TABLES (DBC) ALL,
RELEASE LOCK,
FILE=financil;
.LOGOFF;
 
2. I have also tried:
ARCHIVE DATA TABLES (DBC), RELEASE LOCk
3.  I have also tried:
ARCHIVE DATA TABLES (financial), RELEASE LOCk
where financial is name of the database
 
4. I have also tried:
ARCHIVE DATA TABLES (financial.accts), RELEASE LOCk
where financial is name of the databaseand accts is tablename
 
All sceraios 1 to 4 give me the same error
 
ARCMAIN giving Error 3802:Database '$ARC' does not exist.
 
 
ANy idea why? There is something not setup or missing in my .in file, Do not know what??
 
 
Following is log file:
 
010/14/2013 15:31:02  RUNNING ARCMAIN RELEASE 14.00.00.01 BUILD 1102-07e (Dec 14
                     2011)
07/14/2013 15:31:02     ***   ****    ****
07/14/2013 15:31:02    *   *  *   *  *        PROGRAM: ARCMAIN
07/14/2013 15:31:02    *****  ****   *        RELEASE: 14.00.00.01
07/14/2013 15:31:02    *   *  *  *   *        BUILD:   110207eLX (Dec 14 2011)
07/14/2013 15:31:02    *   *  *   *   ****
07/14/2013 15:31:02
07/14/2013 15:31:02  RESTARTLOG = ARCLOG130714_153102_22400.rlg
07/14/2013 15:31:02
07/14/2013 15:31:02  PARAMETERS IN USE:
07/14/2013 15:31:02
07/14/2013 15:31:02  SESSIONS 8
07/14/2013 15:31:02  CATALOG ENABLED FOR OBJECTS AND ALL TABLES
07/14/2013 15:31:02  OUTPUT LOGGED TO ARCALLfinancial.log
07/14/2013 15:31:02
07/14/2013 15:31:02
07/14/2013 15:31:02  CHARACTER SET IN USE: ASCII
07/14/2013 15:31:02  .LOGON DBCCOP1/DBC,;
07/14/2013 15:31:03  LOGGED ON 3 SESSIONS
07/14/2013 15:31:03
07/14/2013 15:31:03  DBS LANGUAGE SUPPORT MODE Standard
                                                              1,1           Top
07/14/2013 15:31:03  DBS RELEASE 14.00.00.01
07/14/2013 15:31:03  DBS VERSION 14.00.00.01
07/14/2013 15:31:03
07/14/2013 15:31:03  STATEMENT COMPLETED
07/14/2013 15:31:03
07/14/2013 15:31:03  ARCHIVE DATA TABLES (DBC) ALL,
07/14/2013 15:31:03  RELEASE LOCK,
07/14/2013 15:31:03  FILE=financil;
07/14/2013 15:31:03  UTILITY EVENT NUMBER  - 29
07/14/2013 15:31:06  LOGGED ON    8 SESSIONS
07/14/2013 15:31:06  *** Error 3802:Database '$ARC' does not exist.
07/14/2013 15:31:06  *** Failure ARC0100:Unable to create catalog table.
07/14/2013 15:31:06  LOGGED OFF  11 SESSIONS
07/14/2013 15:31:06  ARCMAIN TERMINATED WITH SEVERITY 12
 
 
 

 

 

Forums: 

ARCMAIN giving Error 3802:Database '$ARC' does not exist. - response (1) by zigzagdna

$
0
0

Oh well, I changed CATALOG to NOCATALOG
arcmain SESSIONS=8 NOCATALOG OUTLOG=ARCALLfinancial.log < /root/premfiles/arcmain/arcdatabase.in
 
Do not know the purpose of CATALOG?

Teradata Training Material available - response (114) by aparnanag

$
0
0

Hi,
Could you please share the material to aparna.nagraj@gmail.com
Thanks!

BISP - best place to Learn Teradata online - forum topic by ashishgoyal


using a Timestamp value within a dynamic sql statement - response (4) by bala2121

$
0
0

Hi Dieter,
That Proc name is also a variable, the value of which is again fetched from that FOR loop only. There are around 10 procedures to be called around 100 times with different set of variables. Please suggest.
Regards,
Bala.

Need instruction for installing PDCR. - forum topic by ashikmh

$
0
0

We have PDCR installed on production box, but now, we need to install on the dev box as well, so any information regarding the  PDCR installation information will help me.
--Thanks,

Error while creating Volatile Table - forum topic by apundir23

$
0
0

Hi, I am using teradata Ver 14.01 and want to create a Volatile Table and for that I am using the below syntax:

create volatile table my_temp
(st_name varchar(30),
St_id integer
)
On Commit Preserve Rows;

and tried to fetch the data from existing table

create volatile table my_temp
AS
(Select * from mytable)
With Data
On Commit Preserve Rows;

but everytime I am getting error :199: SQL0199N The use of the reserved word "TABLE" following "" is not valid. Expected tokens may include: "TABLESPACE". SQLSTATE=42601.

Please let me know where I am going wrong.

Forums: 

Loading a teradata table using multiple files sample script - response (1) by Harpreet Singh

$
0
0

Hi,
Refer tpt installation folder, it has sample scripts.
Thanks

Not getting the error message from Teradata Macro ( using ABORT option ) - forum topic by new2tera

$
0
0

Hi,
I am trying to pop-up a message by using ABORT option in Teradata Macro ( using Teradata 13 ) like this:
CREATE MACRO devdb.macro_test ( my_param integer ) as (
ABORT 'pls input my_param between 1 and 100' WHERE :my_param <1 or :my_param >100;
);
EXEC devdb.macro_test ( 110 );
When I execute the macro, it is executing & the message is "EXECUTE completed. 0 rows processed" but the error message is not appearing in the teradata sql assistant.
Please let me know if there is any special setting to pop-up the message.
 

Forums: 

strtok_split_to_table support only Integer and does not support other data type - response (2) by CarlosAL

$
0
0

Hi all.
The 'outkey' returned value must be, according to manuals, either INTEGER or VARCHAR(10), but I've found that it can be a VARCHAR up to 32 characters (exceeding this limit, you get error 9134 "STRTOK: Varchar Inkey exceeded the max. allowed inkey length. Redefine UDF."
HTH.
Cheers.
Carlos.

Capturing ERRORCODE in BTEQ from stored Procedure - response (2) by sillian

$
0
0

Hi,
 i have the same problem but can solve it. The stored procedure returns an error code but is not captured by Bteq, here is an example log:
 

Call SP_NAME('DB_NAME','TABLE_NAME');

 *** Error 2825 NO RECORD OF THE LAST REQUEST WAS FOUND AFTER DBC RESTART

 *** Total elapsed time was 32 minutes and 45 seconds.

+---------+---------+---------+---------+---------+---------+---------+----

.IF ERRORCODE <> 0 THEN .GOTO BTEQ_KO ;

 

 

The Bteq ERRORCODE is always 0, the Bteq doesn't see the all Stored Procedure errorcode and BTEQ go to a OK state.

 

There's some other sql instruction for capture the SP error code in a Bteq?

 

Regards.

Giulian

 

 


Experiencing Challenges with TimeStamp in Teradata - response (2) by mmbratz

$
0
0

Thank you very much to you, i see what, perhaps you can assist, what am basically trying to do is Automate Reports Using Reports Services Tool, so i'm trying to get a date Syntax that i will use so that the report can run automatically on monthly basis without my intervention.

Experiencing Challenges with TimeStamp in Teradata - response (3) by mmbratz

$
0
0

meant to say " i see what you mean"

dbc.qrylog - forum topic by mayanksh

$
0
0

Hello,

Can some body please help me with some query through which I can see what queries a particular user has fired using teradata sql assistantce as when I'm using dbc.qrylog it just showing with current date only for any user?

I had tried Pdcr.dbqlogtbl_hst but it says I don't have select previlage to it.

Regards,
Mayank Shekher

Forums: 

dbc.qrylog - How to see which all query fired previous days. - forum topic by mayanksh

$
0
0

Hello,

Can some body please help me with some query through which I can see what queries a particular user has fired using teradata sql assistantce as when I'm using dbc.qrylog it just showing with current date only for any user?

I had tried Pdcr.dbqlogtbl_hst but it says I don't have select previlage to it.

Regards,
Mayank Shekher

Forums: 

For joins NUPI can be a better choice than a UPI - forum topic by barani_sachin

$
0
0

Hi All,
    I have read that "For join performance, a NUPI can be a better choice than a UPI."
Someone please explain why is that? If it is a PI join then it is an same AMP operation how does NUPI will serve better than a UPI??

Forums: 
Viewing all 27759 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>