cfinsert tablename attribute, how to format for Oracle

I've been using <cfquery> successfully for a long time
to do table inserts, but now I'd like to use <cfinsert> for
the simple inserts. However, I'm getting error messages. A typical
<cfquery> against my Oracle database would look like:
<cfquery name="myQuery"
datasource="#application.DataSource#">
INSERT into abc.action_type_def (field1, field2, field3)
VALUES ('value1', value2'', value3'')
</cfquery>
I tried the following <cfinsert> but got the error
message that follows the tag:
<cfinsert datasource="#application.DataSource#"
tablename="ABC.ACTION_TYPE_DEF"
formfields="FIELD1, FIELD2, FIELD3">
ERROR:
Message: There are no columns found for the given table name
"PRFA.ACTION_TYPE_DEF".
Detail: This error may be caused by not specifying the table
name in the format that the database server expects. (For example.
Oracle Server table name must be upper case or the Server table
name must be qualified in the format of "schema.table_name". For
the SQL Server, the format is "databasename.username.tablename",
such as in customers.dbo.orders)
I've tried upper and lower case on the tablename attribute,
tried leaving the "abc." off, but I just can't seem to get it to
work. Any idea how to format this tag to go against an Oracle
database?
Thanks! Pam

Word of advice: I would stay away from using cfinsert and
cfupdate tags, unless you are prone to masochistic tendencies and
enjoy pain and suffering. These tags are notoriously bug-prone, and
cause more work than they save. Just my opinion, but I'm sure that
it is one shared by many on these forums.
Having said that, you might take a look at the attributes for
this tag, as you seem to have combined the schema (table owner)
with the table name, as in ABC.ACTION_TYPE_DEF, which should be
listed distinctly using separate attributes, namely tableOwner and
tableName respectively. Note: I don’t use these tags so this
“fix” is just based on reading the
LiveDocs
for this tag.
Since you have so much more control using cfquery, and you
said that you have been using it for quite some time, why switch to
using cfupdate/cfinsert? If you already know enough SQL to do an
insert or update , then you really don't need to use these tags.
You will thank me.
Phil

Similar Messages

  • What is the default encoding file format for oracle database.

    Hello,
    I wanted to create all files in ANSI format irrespective of database characterset. is there any way to confirm?
    please help me out.

    Hello,
    AS per my knowledge, UTL_FILE expects that files opened by UTL_FILE.FOPEN in text mode are encoded in the database character set And files opened by UTL_FILE.FOPEN_NCHAR in text mode are encoded in the UTF8 character set. However there is not any parameter to set default encoding format for file. It works as mentioned above.
    Encoding mode is depend on database character set. If you want to change it while reading/writing file then you can use utl_encode.text_encode/ utl_encode.text_decode/ UTL_RAW.CONVERT function.
    When data encoded in one character set is read and Globalization Support is told (such as by means of NLS_LANG) that it is encoded in another character set, the result is indeterminate. If NLS_LANG is set, it should therefore be the same as the database character set..
    I wanted to create file using UTL_FILE. and whatever files gets create that should be in ANSI format.
    Database version : 11.2.0.1
    Edited by: Sachin.Ichake on Oct 3, 2012 11:12 PM

  • Archiving Best Practices / How To Guide for Oracle 10g - need urgently

    Hi,
    I apologize if this is a silly question. But i need a step by step archiving guide for Oracle 10g and cannot find any reference document. I am in a rather remote part of S.E. Asia & can't seem to find DBA's with the requisite experience to do the job properly. I have had 1 database lock up this week at a big telecoms provider and another one at a major bank is about to go. I can easily add LUNS & re-structure mirrors etc at the Unix level [ i am a Unix engineer ]
    but i know that is not the long run solution. I am sure the 2 databases i am concerned about have never been archived properly.
    This is the sort of thing DBA's must do all the time. Can someone point me to the proper documentation so i can do a proper job and archive a few years data out of these databases. I do not want to do a hack job. At least i can clone the databases and practise on the clones first before i actually do production.
    -thanks very much
    -gregoire
    [email protected]

    I'm not so sure this is a general database question, as it would be specific to an application and implementation, and as the technology has changed, the database options to support it has too.
    So for example, if you have bought the partitioning option, there may be some sensible procedure for partitioning off older data.
    Things may depend on whether you are talking about an OLTP, a DW, a DSS, or mixed systems.
    DBA's do it all the time because the requirements are different everywhere. Simply deleting a lot of data after copying the old data to another table (as some older systems do) may just wind up giving you performance problems scanning swiss-cheesed data.
    Some places may not archive at all, if they've separated out OLTP from reporting. If all the OLTP stuff is accessed through indices, all the older stuff just sits there. The reporting DB may only have what is needed to be reported on, or be on a standby db where range scans are sufficient to ignore old data. There there's exadata, which has it's own strengths.
    Best Practices have to be on similar enough systems, otherwise they are a self-contradiction.
    Get yourself someone who understands your requirements and can evaluate the actual problem. No apology needed, it is not a silly question. But what is silly is assuming what the problem is with no evidence.

  • Chinese Character in PDF format for Oracle Reports 11g

    Hello Everyone,
    Currently we have a Report that need to be display chinese character in PDF format.
    We followed the steps specified in the "Oralce Fusion Middleware Publishing Reports to the Web with Oracle Reports Services"
    documentation but things doesn't work. We also installed Adobe Acrobat Reader 9 and Asian Font Pack 9 on the server side
    and even on the client/user/development side and followed the steps in the documentation, but no effect at all. Or we even
    tried "Arial Unicode MS", same thing no effect.
    For sure, we may miss something during PDF aliasing or PDF subsetting setup.
    Anyone out there who has the same experience and able to resolve the issue that currently using the Oralce Fusion Middleware Reports 11g?
    Doesn't matter if it does not related to chinese character, as long as it relates to this issue like japanese or arabic characters in PDF.
    If its ok, kindly provide the steps how you do it.
    Your help is highly appreciated.
    Regards and Thank you very much!

    I am now facing exactly the same problem as user449955 (Eric's). Dear Eric, how about your situation? If you have resolved this problem, may I ask for your solution?
    In my case, using either font aliasing or font subsetting doesn't work at all (displaying "garbage" characters instead of Chinese characters). The setting in my uifont.ali is as follows:
    If using font aliasing:
    [PDF]
    .....ZHT16HKSCS = "MSungStd-Light-Acro"
    If using font subsetting (the REPORTS_PATH already includes "C:\Windows\Fonts"):
    [PDF:Subset]
    "Courier New" = "mingliu.ttc,2"
    For both cases, the report server's NLS_LANG already set to "TRADITIONAL CHINESE_HONG KONG.ZHT16HKSCS" (I am in fact located at Hong Kong). For font aliasing, the client side already has Asian Adobe Reader with Asian font pack installed.
    By the way, I noticed that the WebLogic EM is configuring/updating the uifont.ali file at "<instance home>\config\FRComponent\frcommon\tools\common" directory, but the Oracle Reports 11g's documentation sometimes advise to refer to another uifont.ali file located at "<instance home>\config\FRComponent\frcommon\guicommon\tk\admin" directory. Which one of the uifont.ali files is the one used by the Oracle Reporting Service?
    My report server's platform is Windows 7 Enterprise (64-bit) and the Reports version is 11.1.1.3.
    Anyone can help to advise?
    Thank you very much.
    Regards

  • Date format for oracle lite client database

    hello....
    When data is entered opened on the oracle lite webtogo OC4J client is giving the following errors:
    JBO-25009: Cannot create an object of type:java.sql.Date with value:2/21/08 12:00 AM
    JBO-27014: Attribute CreationDate in AppModule.ApplicantIncomesView1 is required
    JBO-27024: Failed to validate a row with key oracle.jbo.Key[85685 ] of type AppModule.ApplicantIncomesView1
    Which date format is supported on the OC4J client?The application has been developed using Jdeveloper JSF/ADF BC technology.

    user6998712 wrote:
    Hi all,
    My client has installed Oracle Lite version 10.3.0.3. Oracle Lite Database file (ODB) tends to grow too large. Oracle recommends resizing the Oracle Lite database by running Defrag.exe tool. please post URL where this is documented

  • SQL In invalid format for Oracle

    I have some SQL that works fine on SQLServer2000 but is invalid in Oracle 9i, could anyone explain what Oracle doesn't like about this syntax (this is simplified version) and how I can get round it.
    Basically it does two different searches and if both suceed then retrieves all information for the matching id's. (In the full version the code is generated by the application and the no of seaches is varaible).
    SELECT T5.*
    FROM
    SELECT T1.ORGANISATION_ID
    FROM
    SELECT DISTINCT T3.ORGANISATION_ID
    FROM ORG_ALIAS T3
    WHERE T3.ALIAS LIKE 'testalias'
         UNION ALL
    SELECT DISTINCT T4.ORGANISATION_ID
    FROM ORGANISATION T4
    WHERE T4.ORGANISATION_NAME LIKE 'testname'
    ) AS T1
    GROUP BY T1.ORGANISATION_ID
    HAVING COUNT(T1.ORGANISATION_ID)>=2
    AS T0
    INNER JOIN ORGANISATION T5 ON T0.ORGANISATION_ID = T5.ORGANISATION_ID;
    thanks Paul

    I don't have 9i yet, so I'm not sure what changes they've made with the joins - I heard that they were going to start supporting something like what you wrote, but I'm not sure of the exact syntax. In any event, the following should work for you:
    SELECT T5.*
    FROM
    (SELECT T1.ORGANISATION_ID
    FROM
    ( SELECT DISTINCT T3.ORGANISATION_ID
    FROM ORG_ALIAS T3
    WHERE T3.ALIAS LIKE 'testalias'
    UNION ALL
    SELECT DISTINCT T4.ORGANISATION_ID
    FROM ORGANISATION T4
    WHERE T4.ORGANISATION_NAME LIKE 'testname'
    ) T1
    GROUP BY T1.ORGANISATION_ID
    HAVING COUNT(T1.ORGANISATION_ID)>=2
    ) T0
    where T0.ORGANISATION_ID (+)=T5.ORGANISATION_ID
    Remove the AS from in front of the T0 and the T1 statements and change your inner join to what I put down.
    Eric

  • How to update for oracle Release 10.2.0.1 to 10.2.0.3

    Hi,
    Can anybody give me hint how can i update my oracle version 10.2.0.1 to version 10.2.0.3.
    I have installed oracle 10gR2 with following:
    SQL> select * from v$version;
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
    PL/SQL Release 10.2.0.1.0 - Production
    CORE     10.2.0.1.0     Production
    TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    Now how to update to Release 10.2.0.3 - Prod
    Regards,
    Rushang

    Download it as a patch from Metalink.
    If you have Vista, go to http://www.oracle.com/technology/software/products/database/oracle10g/htdocs/10203vista.html
    You will normally follow the upgrade guide that comes with the download. It is simple to follow.

  • How to check for Oracle AS installation on Windows XP

    How can I check to see if Oracle Application Server is installed on my machine? I am using Windows Service Pack 3.

    also in Windows Services, you may find Like 4 or 5, depend on what you installed. they goes like
    Oracle<instancename><oraclehome>ascontrol
    Oracle<instancename><oraclehome>processmanager
    and so on.
    Regards

  • How configure SSL for Oracle Lite

    Hi all,
    I'm trying to configure SSL but I've many doubts.
    I already have one SSL certificate, I read in the documentation that is necessary to use the keytool.
    Someone can help me for use this tool?
    tks,
    Everson

    this should help
    http://weblogic-wonders.com/weblogic/2010/05/19/configuring-ssl-on-weblogic-server-custom-identity-custom-trust/

  • Received ipod shuffle as gift formatted for Mac.  I need to reformat for pc

    I received an ipod shuffle as a gift. It was already formatted for a Mac. However, I have my own itunes library on my Windows PC. I want to reformat the ipod for the pc, but am having trouble doing that. Can anyone tell me exactly what I need to do?
    THanks!

    The ipod I received was already formatted on a mac
    and filled with songs from the gift givers itunes
    library. I don't want it that way. I want to
    reformat it for the pc and put my songs on it. I
    have tried to restore, resynch, etc, but it is not
    working, because it is formatted for the mac. All I
    want to know is how to format for the pc (and start
    over). I saw a post from an earlier discussion that
    said that I could choose the device on My Computer
    and right click and say format, but right clicking on
    the device does not give me format as an option. Any
    ideas?
    Try this: http://www.apple.com/support/downloads/ipodresetutility10forwindows.html

  • How to set default number format for whole app

    Hi!
    I have a bunch of View Objects and I have to set the format for each attribute of type number. I've tried using
    MyAtt_FMT_FORMAT=#,##0.00
    MaAtt_FMT_FORMATTER=oracle.jbo.format.DefaultNumberFormatter
    on just a couple of attributes and it works OK. But since I have a lot of number fields across application in a lots of view objects, I would like to set this format as default for all the number fields in my application.
    Can I do that and if yes, how?
    Thanks

    you can use Domains.
    chapter 26 Advanced Entity Object Techniques in Developer’s Guide For Forms/4GL Developers
    Regards,

  • How to Change the default format for differnt language both in java and SQL

    Hello,
    I am using SQL Anywhere in my application.And in my java client application user can log in with their preferred language like English,French,German,Chinese,etc....When even the user log in to the application the data from the database will be displayed with respective to the language.But when i tried to see the dates in Interactive SQL all the dates r in the format of '2008-12-5 16:44:10:673' but say for example for Chinese it will be displayed as '08-12-5 16.44.10' and for some other language it will come in some other format(which is standard format for those language).
    Mean while i am using java client.When ever i am displaying a date it will be with respective to the language using Locale and date format classes.When i am displaying the date for Chinese in GUI it will show the date as '08-12-5 &#19979;&#21320;4:44'. In summary
    1. For Chinese,the default date pattern from SQL Anywhere date base is '08-12-5 16.44.10'
    2. For the same language date using java code is displaying as '08-12-5 &#19979;&#21320;4:44'. and i am getting the time format pattern as 'ah:mm'.I tried to change the display format in regional settings but no change in display.
    Is there any way to make both the time format as same?
    Please help me to solve this issue!!!
    Thanks in Advance!
    Arun

    pon_arun wrote:
    Hello masijade,
    I did as u said but still the date display is not the same......And I'm telling you that it doesn't matter. What "format" the DB likes to display a Date in when it displays it, is completely irrelevant to how you display it in your GUI.
    A Date does not have a format. A String representation of a Date does.
    As long as you use getDate from ResultSet and setDate from PreparedStatement you do not have to worry about this. Those methods will handle dates to and from the DB themselves. You can then use SimpleDateFormat to display the Date anyway you want to.
    Just because you show the Date one way, and the DB shows it another, does not mean that it is not the same date. Don't get hung up on how the String representation of the Date looks.
    Edit: If you simply want to be able to do "Human Comparisons" then look at the SQL TO_CHAR function (for Oracle, for other DBs the function name may vary). And for Java, read the API docs for SimpleDateFormat (as already intimated above).

  • How to set JDBC Data Sources in Oracle MapViewer for Oracle database 12c Release 1 (12.1.0.1)

    How to set JDBC Data Sources in Oracle MapViewer for Oracle database 12c Release 1 (12.1.0.1)?
    The following is my configuration in the conf\mapViewerConfig.xml:
    <map_data_source name="mvdemo12"
    jdbc_host="127.0.0.1"
    jdbc_sid="orcl12c1"
    jdbc_port="1522"
    jdbc_user="mvdemo"
    jdbc_password="7OVl2rJ+hOYxG5T3vKJQb+hW4NPgy9EN"
    jdbc_mode="thin"
    number_of_mappers="3"
    allow_jdbc_theme_based_foi="true"
    editable="true"/>
    <!--  ****  -->
    But it does not work.
    After use "sqlplus mvdemo/[email protected]:1522/pdborcl", it connected to the Oracle database 12c.
    Does anyone know it?
    Thanks,

    For 11.1.1.7.1 use the syntax for jdbc_sid, i.e.
    //mypdb1.foo.com as described in the README,
    - MapViewer native (non-container) data sources can now use database service name in place of SID. To supply a db service name, you will use the same jdbc_sid attribute, but specify the service name with double slashes in front, such as follows:
      <map_data_source name="myds"
        jdbc_host="foo.com"
        jdbc_sid="//mypdb1.foo.com"
        jdbc_port="1522"
      />
    For 11.1.1.7.0 use a container_ds instead.
    i.e. instead of using
    <map_data_source name="my_12c_test"
                       jdbc_host="mydbinstance"
                       jdbc_sid="pdborcl12c"
                       jdbc_port="1522"
                       jdbc_user="mytestuser"
                       jdbc_password="m2E7T48U3LfRjKwR0YFETQcjNb4gCMLG8/X0KWjO00Q="
                       jdbc_mode="thin"
                       number_of_mappers="6"
                       allow_jdbc_theme_based_foi="false"
                       editable="false"
       />
    use
      <map_data_source name="my_12c_test"
                       container_ds="jdbc/db12c"
                       number_of_mappers="6"
                       allow_jdbc_theme_based_foi="false"
                       editable="false"
       />
    In my case the Glassfish 3.1.2.2 JDBC connection pool definition was
    Property
    url  jdbc:oracle:thin:@mydbinstance:1522/pdborcl12c.rest_of.service.name
    Uncheck the Wrap JDBC Objects option in Advanced panel, i.e. the Edit JDBC Connection Pool Advanced properties page.
    Add a JDBC resource for that newly created pool
    Use that in mapviewerconfig.xml as above

  • How to produce an XML file in OAGIS format ( for Vendor Master & Invoices)

    Hi Guys,
    I've requirement to produce an XML file in OAGIS format ( for Vendor Master & Invoices) under Oracle AP and PO.
    Any inputs?
    thanks.

    Not sure,you are looking for inbuild product to produce the OAG XML format, or trying to build custom one.
    If options is Inbuild Product, Oracle Exchange is yeh another product has such kind of capability. Refer this
    http://download-west.oracle.com/docs/cd/A97329_03/web.902/a88894/adx16orx.htm#1007387
    FOr second , check out these two document in metalink
    150083.1 XML Utilities
    123491.1 How To Insert XML Documents Into The Database And Validate Them Using PL/SQL ?
    Hope this will be help

  • New Format for creating Attribute Sets.

    Hi,
    In SAP CRM webclient ui 7.0 there is a new format for creating Attribute Sets. The format is 'value table'.
    On selecting Format=Value Table the field 'Table' comes up.
    There is a message: Here you can enter a table that contains all the values you want to use. This is particularly useful for attributes with a lot of values or if you want to enter multiple attributes with the same values. The table must be a check table with a search help.
    Do I need to create a table with all the fields in in marketing attribute assignment block with search help on attributes field.
    Can you please guide as to how I should go about this issue.
    Regards,
    John.

    Hi John,
    The Attribute Set of Format type 'Value Table' is for the Mutiple Attribute Sets. These can be either a Single Attribute Set with Multiple values or the Multiple Attribute Sets with One value.
    You can include all such marketing attributes into one table which is a check table with search help. and use this as the Value Table.
    Hope this helps you out!
    Regards
    Veena.

Maybe you are looking for

  • Issue in publication of Crystal Report on BO CMC

    Hi, We have a Crystal Report which needs to be bursted in order to create multiple pdf files based on Account Number field used in report. For this, we have created a source report which contain all the fields required having Account Number. The repo

  • Problem handling error messages in Axis

    I am consuming a web service, and all calls work fine. However, when the web service raises an error (for example I pass the wrong login), my Java application returns the following: java.lang.ClassCastException: org.apache.axis.message.Text The error

  • How to find out Export area for a import

    Hi All, I have a issue ..in my program we are inporting one value from ABAP memory . iwant to know where from it is exported i try with debugg by seeing system merory it's showing the filed name but it is not showing where from it is exported pls hel

  • FB60 vendor invoice

    FB60 vendor invoice Transaction : posting a vendor invoice and offsetting entry is a G/L expense account When i enter equal amounts (invoice amount and g/l amount) i am getting an error saying balance not zero But i varied the amount it is letting me

  • Java.lang.OutOfMemoryError: Perm Space in Weblogic10.3

    Hi Friends I installed an weblogic server on my machine with 1GB RAM, windows XP sp2. I made simple application and deployed it on the server just after few sec of usage the weblogic server is giving this error java.lang.OutOfMemoryError: Perm Space