External table ORA-30657: operation not supported on external organized tab

Hi all
I'm trying to create a table outside and fill it with data from my DB. Without the AS - Section all right. The external table will be created, but I do not get the data into it. Is there a possible way to write data defined in a flat file via external table or some other mechanism?

Carsten cordially

The full statement:

CREATE or REPLACE DIRECTORY admin_dat_dir
LIKE 'E:\CDDTEST ';
CREATE or REPLACE DIRECTORY admin_log_dir
LIKE 'E:\CDDTEST ';
CREATE or REPLACE DIRECTORY admin_bad_dir
LIKE 'E:\CDDTEST ';
DROP TABLE cdd_ext_vt;
-creation of the external table
CREATE TABLE cdd_ext_vt
(vertrag_nr VARCHAR2 (25),)
kunden_name VARCHAR2 (60)
)
EXTERNAL ORGANIZATION
(
TYPE ORACLE_LOADER
Admin_dat_dir default DIRECTORY
ACCESS SETTINGS
(
records delimited by newline
BadFile admin_bad_dir:'empxt%a_%p.bad'
logfile admin_log_dir:'empxt%a_%p.log'
fields completed by «,»
missing field values are null
(vetrag_nr, kunden_name
)
)
LOCATION ("cdd_ext_vt.dat")
)
REJECT LIMIT UNLIMITED

AS
Select vt.vertrag, chr (34) | Trim (Person.Name) | Chr (34)
VT, person
where vt.syskd = person.sysperson
and rownum < 11
;

Carsten,

You can use this to dump this procedure in csv file

create or replace function  dump_csv( p_query     in varchar2,
                                      p_separator in varchar2 default ',',
                                      p_dir       in varchar2 ,
                                      p_filename  in varchar2 )
return number
is
    l_output        utl_file.file_type;
    l_theCursor     integer default dbms_sql.open_cursor;
    l_columnValue   varchar2(4000);
    l_status        integer;
    l_colCnt        number default 0;
    l_separator     varchar2(10) default '';
    l_cnt           number default 0;
begin
    l_output := utl_file.fopen( p_dir, p_filename, 'w' );

    dbms_sql.parse(  l_theCursor,  p_query, dbms_sql.native );

    for i in 1 .. 255 loop
        begin
            dbms_sql.define_column( l_theCursor, i, l_columnValue, 4000 );
            l_colCnt := i;
        exception
            when others then
                if ( sqlcode = -1007 ) then exit;
                else
                    raise;
                end if;
        end;
    end loop;

    dbms_sql.define_column( l_theCursor, 1, l_columnValue, 4000 );

    l_status := dbms_sql.execute(l_theCursor);

    loop
        exit when ( dbms_sql.fetch_rows(l_theCursor) <= 0 );
        l_separator := '';
        for i in 1 .. l_colCnt loop
            dbms_sql.column_value( l_theCursor, i, l_columnValue );
            utl_file.put( l_output, l_separator || l_columnValue );
            l_separator := p_separator;
        end loop;
        utl_file.new_line( l_output );
        l_cnt := l_cnt+1;
    end loop;
    dbms_sql.close_cursor(l_theCursor);

    utl_file.fclose( l_output );
    return l_cnt;
end dump_csv;
/

REM Here is an example of using the above:

create or replace procedure test_dump_csv
as
    l_rows  number;
begin
    l_rows := dump_csv( 'select * from all_users where rownum < 25', ',', '/tmp', 'test.dat' );
end;
/

HTH
SS

Tags: Database

Similar Questions

  • Operation not supported. Cannot open a document processed by the engine of JRC in the C++ stack.

    I have visual studio 2010 with Crystal reports extension add on.  Everything works perfectly in development (Win XP Sp3).  When I create my Web site and try to access a report crystal on my web server (Windows 2003 R2 32 bit) I get the following error:

    Unsupported operation. Cannot open a document processed by the engine of JRC in the C++ stack. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and its origin in the code.

    Exception details: System.Runtime.InteropServices.COMException: Operation not supported. Cannot open a document processed by the engine of JRC in the C++ stack.

    Source error:

    An unhandled exception is generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception below stack trace.

    Stack trace:

    [COMException (0 x 80041811): no support of operation.] A document processed by the engine of JRC cannot open C++ stack.] CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open (object & DocumentPath, Int32 Options) + 0 CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open (object & DocumentPath, Int32 Options) CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened (+ 95 + 270) [CrystalReportsException: load failed report.] CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened () + 333 CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.get_ProductLocaleID () + 31 CrystalDecisions.ReportSource.CachedObjectReportSource.GetReport (context RequestContext, Boolean bAddToCacheWhenCreated) + CrystalDecisions.Web.CrystalReportSource.get_ReportDocument () + 201 Reports_POD 438. Page_Load (ByVal sender As Object, ByVal e As EventArgs) + 55 System.Web.UI.Control.OnLoad (EventArgs e) + 91 System.Web.UI.Control.LoadRecursive () + 74 System.Web.UI.Page.ProcessRequestMain (Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) + 2207

    I installed CR2008, 2011, etc. nothing works.
    I've looked everywhere for a solution to this error.
    If anyone has a solution please post.  It would be much appreciated!

    Thank you

    WS

    Salvation Will Stoner,

    Your question of Windows Server is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the IT audience Pro on MSDN. Please post your question in the MSDN Windows Server forum.

    http://social.msdn.Microsoft.com/forums/en/vsreportcontrols/threads

  • ORA-22816: feature not supported with RETURNING clause

    <!-StartFragment--> java.sql.SQLException: ORA-02014: cannot select the UPDATES view DISTINCT, GROUP BY, etc.

    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:138)

    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:316)

    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:282)

    at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:639)

    at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:185)

    at oracle.jdbc.driver.T4CPreparedStatement.execute_for_describe(T4CPreparedStatement.java:503)

    at oracle.jdbc.driver.OracleStatement.execute_maybe_describe(OracleStatement.java:1029)

    at oracle.jdbc.driver.T4CPreparedStatement.execute_maybe_describe(T4CPreparedStatement.java:535)

    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1126)

    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3001)

    at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3043)

    at oracle.jbo.server.OracleSQLBuilderImpl.doEntitySelect(OracleSQLBuilderImpl.java:730)

    at oracle.jbo.server.EntityImpl.doSelect(EntityImpl.java:5594)

    at oracle.apps.fnd.framework.server.OAEntityImpl.doSelect (unknown Source)

    Hello

    I had the resolution of the following link

    EODefImpl.java to implement so that EO
    and override the createDef() method.

    Public Sub createDef()
    {
    super.createDef ();
    setUseReturningClause (false);
    }

    Thank you

    AP

    ORA-22816 - feature not supported with clause of returning OFFICER (EO)

  • Operation not supported. Check the log of the applications for more details.

    It is my second day of learning ColdFusion. I am able to view the .cfm pages. However, when I tried to browse/load the .cfc file, I kept getting this error.

    Operation not supported. Check the log of the applications for more details.

    Here's my simple tests codes.

    < cfproperty hint = "First CFC" >

    < cffunction name = returntype 'getValue' = 'Chain' access 'public' = >

    < cfreturn "Hellow World" >

    < / cffunction >

    < / cfproperty >

    Where is the "application log" so I can check for more details?

    You should not really 'Browse' for SWC files, in general.  But if you do, then you might want to give the function an output attribute = "Yes".

    The newspapers are easily read in the CFAdmin (go debugging & logging on the left navigation, then choose "Log Files" under this and click on "application.log" in the list of newspapers).

    Alternatively, you can also use Windows Explorer (or what file viewer your use OS) and navigate to {cfDirectory} cfusion\logs, find the file "application.log" and open it.

    HTH,

    ^_^

  • ORA-00845: MEMORY_TARGET not supported on this system

    Dear all,

    When I go to start to oracle I m getting this error.

    SQL > startup
    ORA-00845: MEMORY_TARGET not supported on this system

    If you want to open the GUI mode via putty?

    You can use Xming

    Oracle 10g on sun solaris

  • Form trigger error ORA-22816: feature not supported with RETURNING clause

    Hi Apex developers.

    I created the form to the poster with the INSTEAD of trigger. Everything works very well for the UPDATE and DELETE. But to INSERT the "automatic line (DML) treatment" trigger ORA-22816: feature not supported with RETURNING clause. When I disable the INSTEAD OF trigger it start work very well too. But I have to use INSTEAD OF trigger for safety reasons.

    Meet someone too the question?

    What is workaroud for the question?

    Thank you very much.

    Michaud

    Hi Martin,

    MMH, it beats me. You could try with tracing active sql (add & ptrace = YES to your URL), see what actually running.

    Cordially Jens

  • Help please: CloneVM_Task is created but will fail with: operation not supported on the object

    Someone Please help with this, I'm breaking my head with this for 5 hours now.

    I submit, in CloneVM_Task with the following XML (which returns a task id back http://i.e. the application has been accepted in this format):

    & lt; CloneVM_Task xmlns = "urn: vim25" & gt;

    & lt; _C type = 'VirtualMachine' & gt; VM - 938 & lt; / _This & gt;

    & lt; record type = "Folder" & gt; Group d1 & lt; / file & gt;

    & lt; name & gt; 1_UBUNTU 804 & lt; / name & gt;.

    & lt; spec & gt;

    & lt; location & gt;

    & lt; data store type = "Datastore" & gt; datastore-683 & lt; / store data & gt;

    & lt; pool type = "ResourcePool" & gt; resgroup-57 & lt; / pool & gt;

    & lt; / location & gt;

    & lt; model & gt; 0 & lt; / model & gt;

    & lt; powerOn & gt; 1 & lt; / powerOn & gt;

    & lt; config & gt;

    & lt; memoryMB & gt; 1024 & lt; / memoryMB & gt;

    & lt; numCPUs & gt; 1 & lt; / numCPUs & gt;

    & lt; / config & gt;

    & lt; / spec & gt;

    & lt; / CloneVM_Task & gt;

    However, the task itself returns an error saying: the operation is not supported on the object.

    Does anyone know what it is?

    The info that I'm sending should be 100% correct:

    - vm_id: the machine ID of the virtual MODEL VM I'm cloning (100% certain that it is correct)

    - file: the rootFolder returned by ServicContent

    - data store: the data store ONLY I should store VM on. When I query for this data store information it shows clearly that it is accessible and multipleHostAccess = true, so

    - resourcePool: I got this info when querying my ComputeResource properties. I have 1 cluster and resourcePool value that's what I put.

    I really have NO idea what's going wrong here... The CloneVM_Task creates a task - but that's where everything falls apart.

    Please HELP!

    Yes, you should not use the rootFolder, which is just the folder root inventory integer vCenter. A default vmFolder will still exists if you have additional folders, and that's the one you reference to. By default, you must question him to do this, where one day you decide to create folders against hard coding moref ID. The IDS are digital and probably default folder gets this value by iteration, but again, I recommend he petitioned against hard this coding.

    =========================================================================

    William Lam

    VMware vExpert 2009

    Scripts for VMware ESX/ESXi and resources at: http://engineering.ucsb.edu/~duonglt/vmware/

    Twitter: @lamw

    repository scripts vGhetto

    Introduction to the vMA (tips/tricks)

    Getting started with vSphere SDK for Perl

    VMware Code Central - Scripts/code samples for developers and administrators

    VMware developer community

    If you find this information useful, please give points to "correct" or "useful".

  • iPad Air system of operation not supported.

    Is there a work around to install the drivers for a HP4580 printer on an Air iPad Tablet? The operating system is version 7.1

    Hello

    As far as I can see on the net, AOL do not use port 110, so you can use a server wwrong details?

    Try using the following settings and check if this is useful:

    • POP server: pop.aol.com.
    • POP login: [email protected].
    • POP password: your password for AOL email.
    • POP port: 995.
    • SSL required: Yes
  • Spatial DB: ORA-13226: interface not supported without a spatial index (but is no index)

    Hello, I'm trying to find the solution to this problem for quite a long time, but still could not solve it. I have a table where a column has the value of SDO_GEOMETRY, I filled the table, index about it like:

    CREATE the INDEX Spatial_object_idx ON Spatial_object (geometry) INDEXTYPE IS MDSYS. SPATIAL_INDEX;

    then when I run the query

    SELECT s1.id FROM Spatial_object s1

    WHERE s1.valid_to > =? AND s1.valid_to <? AND THERE ARE)

    SELECT s2.id FROM Spatial_object s2 WHERE

    S2.ID = S1.ID AND s2.valid_from = s1.valid_to + 1

    AND SDO_EQUAL (s1.geometry, s2.geometry) = 'TRUE');

    I got an error mentioned above, but when I put the SEPARATE statement after SELECT, it is without error.

    Could someone explain why this phenomenon occurs? Am I missing something here?

    I use jdbc7 on linux and the server is running under oracle 11g.

    Thanks a lot for any help

    Can you please try "SDO_EQUAL (s2.geometry, s1.geometry)"?

    SELECT s1.id FROM Spatial_object s1

    WHERE s1.valid_to > =? AND s1.valid_to

    SELECT s2.id FROM Spatial_object s2 WHERE

    S2.ID = S1.ID AND s2.valid_from = s1.valid_to + 1

    AND SDO_EQUAL (s2.geometry, s1.geometry) = 'TRUE');

  • "Operation not supported" when you create virtual machines in nested virtualization

    Hello world

    I'm quite new to ESX so I decided to give it a try by installing nested within VMWare Worktation 10 for Linux.

    My CPU is an i7-4960 x with 64 GB of RAM so VT-x/EPT gone automatically. 16GB gives ESX.

    Networking configured, also some systems of NFS files, the Datacenter newly created for storage (exported from my base OS Ubuntu 13.10) and attached my virtual ESX (via vCenter appliance).

    What's weird is that I tried to create a Windows 2008 R2 VM in ESX, but the installation does not start a "unsupported operation" appears on the management of web vshere.

    I'm stuck here, trying to find a reason for this.

    I would be really happy if someone out there could help me solve this puzzle.

    Thanks in advance.

    Try to delete the USB controller.

  • Merge not supported on table space

    Hi all

    I'm working on an existing table that has a unique id. It should be expanded with additional id, which we will call a group id.

    Assume there is a table
    create table t
    (
      object_id number not null,
      f1        varchar2(100) not null,
      f2        varchar2(100) not null,
      f3        varchar2(100) not null,
      f4        mdsys.sdo_geometry,
      group_id  number
    );
    The object_id is the PK and obviously unique. The group_id must be unique for each distinct f1, f2, f3 combination.

    I like the merge statement, also for the updates, because of its flexible syntax. I wanted to do:
    merge into t
    using ( select distinct 
                   f1
           ,       f2
           ,       f3
           ,       rownum group_id
           from    t ) g
    on    (        t.f1 = g.f1
            and    t.f2 = g.f2
            and    t.f3 = g.f3 )
    when matched then update
            set    t.group_id = g.group_id;
    but I get an ORA-29886: feature not supported for the field index. (I'm on Oracle Database 10 g Enterprise Edition Release 10.2.0.4.0)

    Of course, it is easy to write a pl/sql loop (and I did), but is there a way to do this in pure sql in a single update statement in an elegant way?

    Thank you!

    Boneist wrote:
    Assuming that object_id is a primary key, then I would do something like:

    update t
    set    t.group_id = (select t2.dr
    from   (select t1.*, dense_rank() over (partition by t1.f1, t1.f2 order by t1.f1, t1.f2) dr
    from   t t1) t2
    where  t2.object_id = t.object_id)
    

    Works better without the PARTITION BY clause ;)

    UPDATE t
    SET group_id = (
      SELECT dr
      FROM (
        SELECT object_id,
               dense_rank() over(order by f1, f2, f3) dr
        FROM t
      ) v
      WHERE v.object_id = t.object_id
    )
    ;
    

    Of course, it is easy to write a pl/sql loop (and I did), but is there a way to do this in pure sql in a single update statement in an elegant way?

    Boneist suggested (without partition), or somewhere in between with a FORALL statement.

    For example:

    DECLARE
    
     gid_tab sys.odcinumberlist;
     oid_tab sys.odcinumberlist;
    
    BEGIN
    
      select object_id,
             dense_rank() over(order by f1, f2, f3)
      bulk collect into oid_tab, gid_tab
      from t
      ;
    
      forall i in 1..oid_tab.count
       update t
       set group_id = gid_tab(i)
       where object_id = oid_tab(i)
      ;
    
    END;
    /
    

    According to the volume of data to process, you may need to test with a LIMIT of COLLECT clause in BULK as well.

    Edited by: odie_63 Feb 4. 2011 15:26

  • OGG-01028 object with the number of the object 80673 is compressed. Compression of the table is not supported.

    (1) I received an email like this:

    Event_alert

    2013-09-17 22:00:16 ERROR OGG - 01028 Oracle GoldenGate Capture for Oracle, ext_1.prm: object with the number of the object 80673 is compressed. Compression of the table is not supported.

    2013-09-17 22:00:16 ERROR OGG - 01668 Oracle GoldenGate Capture for Oracle, ext_1.prm: PROCESS ABENDING.

    (2) I have not found the OBJ

    SQL > select OBJECT_ID, OBJECT_NAME from dba_objects where object_id = 80673;

    no selected line

    (3) change a few times the process EXT recover;

    (4) my excerpt settings

    Cat ext_1.prm

    EXTRACT ext_1

    Ogg, ogg PASSWORD USERID

    TRANLOGOPTIONS EXCLUDEUSER ogg

    SETENV (NLS_LANG = AMERICAN_AMERICA. ZHS16GBK)

    -SETENV (NLS_LANG = AMERICAN_AMERICA. AL32UTF8)

    EXTTRAIL ./dirdat/t1

    DYNAMICRESOLUTION

    TABLE YBK.*;

    This is a bug that has been fixed

    Excerpt from abending with Table of Compression is not supported, even if the database has no tables compressed. (Doc ID 1510691.1)

    event text: Oracle GoldenGate Capture for Oracle, ext_1.prm: object with the number of the object 86173 is compressed. Compression of the table is not supported.

    tableexclude *. DBMS_TABCOMP_TEMP *.

  • MEMORY_TARGET not supported on this system

    Hello

    I'm not a DBA, but during the agreement to the database for a performance test, I changed theMEMORY_TARGET to 32G using Enterprise Manager. My oracle 11g Linux database is. Then I shut down the oracle using sqlplus.

    But while startup, oracle launches due to error.

    ORA-00845: MEMORY_TARGET not supported on this system


    Now I'm stuck. Try event preforming recovery using Enterprise Manager but his failure with the similar error.

    RMAN-04014: failed to start: ORA-00845: MEMORY_TARGET not supported on this system


    Please suggest me how to restore this setting, and then restart the database.

    Thanks in advance,
    Shiv

    Hello

    This error occurs if your/dev/SHM as Linux does not have enough memory.
    by default, / dev/SHM 1/2 of your physical RAM, so I assume that your server has less than 64 GB of memory.

    Just change the entry in the/etc/fstab to use 40 G (instead of the default which is online right now), then your database should be able to start (you will need to back up/dev/shm, tmpfs resp.

    Check with df k your tmpfs has enough free space to hold the 32 GB of your database.

    Concerning
    Sebastian

  • ORA-39726: operation column add/drag not supported on compressed tables

    Hello

    I have an error of the object.

    {noformat}

    SQL > select table_name, compression from dba_tables where owner = 'USER1' and table_name = "TABLE1_LT";

    TABLE_NAME COMPRESS
    ---------------------- --------
    TABLE1_LT DISABLED

    SQL > exec dbms_wm. DisableVersioning ('user1.table1', force = > true, ignore_last_error = > true);
    Dbms_wm BEGIN. DisableVersioning ('user1.table1', force = > true, ignore_last_error = > true); END;
    *
    ERROR on line 1:
    ORA-20231: table "User1. Table1' failed during
    DisableVersioning. Error:
    ORA-39726: operation column add/drag not supported on compressed tables
    ORA-06512: at "WMSYS.LT", line 9360
    ORA-06512: at line 1


    SQL > select sql_str in the all_wm_vt_errors;
    ALTER TABLE USER1. DROP COLUMN LTLOCK TABLE1_LT

    {noformat}

    How can I check, it's a table really compressed or OWM not in?

    Hello

    This is the right way to determine whether a table enabled version uses compression.  It could be another property table or tablespace that causes the same error will be triggered.  It is difficult to know exactly without the full table DDL.  If the dba_tables query was ACTIVE for this column, the inner workings of the Workspace Manager would have to set as unused column instead of a fall that could have prevented this error.  This behavior has been updated in 12 c to always define the column as unused anyway.  As a on 11.2.0.3, you can use ignore_last_error to jump the abandonment of all columns of metadata (version, nextver, delstatus, ltlock and createtime/retiretime if history is used).  Then when DisableVersioning is complete, you can issue the unused column from the game DDL manually for each of the columns.

    Kind regards

    Ben

  • External table: ORA-029913 only through connection allias TNS

    Hello world

    I have a problem on an Oracle 11.2.0.3 database. They have an external table MYTABLE that points to an Oracle MYDIR directory. This directory is a text file MyFile.txt, read by the external table.

    If I connect to the database using "sqlplus user/pass" directly from the DB server, the statement 'select count (*) from' myTable works very well.

    If I connect using a LMO allias "sqlplus user/pass@DB", the statement is wrong:

    SQL> select count (*) from MYTABLE;
    select count (*) from MYTABLE
    *
    ERROR at line 1:
    ORA-29913: error in executing ODCIEXTTABLEOPEN callout
    ORA-29400: data cartridge error
    KUP-04040: file myfile.txt in MYDIR not found
    
    

    The user application oracle has READ and write on the Oracle MYDIR directory.

    The OS 'oracle' user permissions to write to the directory of the OS.

    The problem occurs with the application user, but also with sys and system.

    You have an idea? What could make the statement works in direct relation and fail to remote access?

    Thanks for your help.

    Michael

    I finally found the solution! The oracle user has been recently added to the group. The database was relaunched after this change, but the listener has only been reloaded. All processes spawned by the receiver have been opened with privileges evil and that's why my local connections can get access to the file system and not open remote session.

    THW following note has helped me find the solution: ORA-29283 "Operation file not valid" with OS group and Oracle user is a member (Doc ID 832424.1).

    The note is only on the basis of data Oracle itself, but I tried to restart the receiver and it solved my problem.

    Thanks for your help

Maybe you are looking for

  • G72 Pavilion. : no boot device. Insert the disk and press any key

    My hard drive died recently. I installed a new. Now I'm gettig no boot device - insert boot disk and press any key. What should I do to fix this?

  • New emails disappear. Show only mails about a month ago

    I deleted a bunch of emails.  Only emails are now showing for a month ago or a previous version. When I log in Outlook Express I receive emails, but cannot find them.

  • Configuration of SPA8000

    Hello! I'm trying to set up "regional"(CPC durée) and system (Syslog server) on SPA8000 options, but it only affect the first two lines! "." How can I configure other lines? It looks like I have set up a SPA2102 in SPA8000, but how to set up others?

  • Adobe Lightroom

    I started a free trial of creative cloud, however, then just purchased Adobe Lightroom and do not want to use creative cloud.  I don't seem to have full access to Lightroom now to edit my photos.  How to get rid of everything that said creative cloud

  • Import data to Oracle database when to deploy a CRS using CIM, error!

    Hi allI followed the instructions on this page, http://IAM-saminda.blogspot.com/2013/06/Oracle-ecommerce-ATG-102.htmland the CIM console show success when I create the schema and import the data to the Server publication, but when I open the log of t