ORA-12899 : Does it exist an option to truncate automaticly the data too...

Hi,
I work on a migration project : Sybase to Oracle 10g.
There are a lot of request INSERT writed in Sybase with data too long to be insert in a table.
Example :
create table MyTable (txt varchar(10))
insert into MyTable values ('AAAAAAAAAAAAAAAAA');
So, i have lot of error ORA-12899 ...
With Sybase, there isn't error because the data are automaticly truncated.
Does it exist an option with Oracle to have the same behavior ? Without option, i have to add substr in many request.
Any idea ?

Here is another possibility you may want to consider,
1. make the column generously large, enough that you can be sure it accommodates the longest string.
2. load the data
3. once the data is loaded write a simple query that tells you the length of the longest string that got loaded in the column
4. alter the column to be of a more reasonable size considering step 3.
This way, no need to substr everywhere and truncate values that should not have been truncated in the first place. If you do need to end up truncating the values, it will still be easier to do it once the data is loaded in a table than it is to cherrypick statements to modify in script.
HTH,
John.

Similar Messages

  • The collection you specified does not exists or is not registered with the ColdFusion Search Service.

    While upgrading to CF7 from CF5, I am creating the new collections from Cf Admin. After creating, I indexed it from cf admin and then trying to search for the documents in that collection, and i am getting the following error. This was working yesterday. I have cheched the logs etc and nothing seems helpful in discovering what the issue is.
    Document count is 11,745 and the size is 25,948 kb, which is not too much for a collection. I have tried to restart Cold Fusion Search Services and then ColdFusion Application services, but all in vain.
    Any help on this would be greatly appreciated.
    Detail
    The collection you specified does not exists or is not registered with the ColdFusion Search Service.
    Message
    The collection rc_collectiom does not exist.
    StackTrace
    coldfusion.tagext.search.CollectionDoesNotExistException: The collection rc_collectiom does not exist. at coldfusion.tagext.search.SearchTag.verifyLocale(SearchTag.java:819) at coldfusion.tagext.search.SearchTag.doSearch(SearchTag.java:200) at coldfusion.tagext.search.SearchTag.doStartTag(SearchTag.java:159) at coldfusion.runtime.CfJspPage._emptyTag(CfJspPage.java:1915) at cfeFull2dText2dReDirect2ecfm511389924.runPage(C:\Inetpub\wwwroot\External\FullText\eFull- Text-ReDirect.cfm:43) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:152) at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:349) at coldfusion.runtime.CfJspPage._emptyTag(CfJspPage.java:1915) at cfApplication2ecfc179940445$funcONREQUEST.runFunction(C:\Inetpub\wwwroot\External\Applica tion.cfc:114) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:344) at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:290) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:254) at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:56) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:207) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:169) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:194) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:146) at coldfusion.runtime.AppEventInvoker.invoke(AppEventInvoker.java:72) at coldfusion.runtime.AppEventInvoker.onRequest(AppEventInvoker.java:178) at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:215) at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:51) at coldfusion.filter.PathFilter.invoke(PathFilter.java:86) at coldfusion.filter.LicenseFilter.invoke(LicenseFilter.java:27) at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:69) at coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:52) at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:2 8) at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38) at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38) at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22) at coldfusion.filter.RequestThrottleFilter.invoke(RequestThrottleFilter.java:115) at coldfusion.CfmServlet.service(CfmServlet.java:107) at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:78) at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91) at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42) at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:257) at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:541) at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:204) at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:318) at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:426) at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:264) at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

    So at last I figured this out myself and found a temporary resolution for this kind of problem. Majority of the times try creating the Collection through Cfcollection tag and then index it using cfindex tag, rather than performing these operations from the Cold Fusion 7 administrator.
    The only reason I can think of which might have caused the issue is – I have thousands of documents in the collection which I indexed. So while indexing the page gets expired. So I tried again to index it. This time the collection got indexed fairly quickly and I got the response that the collection has been indexed successfully. So for the first time when I tried to index the collection, there might be some piece of code, which did not register the collection properly and hence giving this error.
    When I did the same function using the code, with exactly same set of documents, it did not throw any error, even when I executed it for the first time. So the collection indexed properly.
    I am not claiming that technically this theory is correct, but this seems to be the problem.
    If someone knows technically what has happened at the back, please share it. For the time being, this is the fix – if you experience any problem in creating/indexing collections through cfadmin in CF7, do it thorough code.

  • The table with Name of 'Table Name' does not exist.An error occurred when loading the Model.

    The table with Name of 'Table Name' does not exist.An error occurred when loading the Model.
    We get this error when we try to check the properties of an analysis server using SQL Server Management studio(right click the instance name
    and check properties). We have resolved this issue twice by Stopping the SQL Server analysis service,removing db folders from Analysis Server Data folder and starting the services back on. The db folder that we removed was advised by the BI team.
    The SQL Server Analysis Server is 2012 SP1

    Hi RB_ORIPW,
    The table with name of 'XXX' doesn't exist.
    An error occurred when loading the model(Micorsoft.AnalysisServices)
    If I understanding correctly, you encounter the error randomly, now what you want it that avoid this issue completely, other than stop the services, detele the db filder and restart the services, right?
    The error might be caused by that the data file is corrupted. However, we cannot give you the exact reason that cause this issue. You can troubleshoot this issue by using the Windows Event logs and msmdsrv.log.
    You can access Windows Event logs via "Administrative Tools" --> "Event Viewer".  SSAS error messages will appear in the application log.
    The msmdsrv.log file for the SSAS instance that can be found in \log folder of the instance. (C:\Program Files\Microsoft SQL Server\MSAS10.MSSQLSERVER\OLAP\Log)
    Here is a blog about data collection for troubleshooting Analysis Services issues, please see:
    Data collection for troubleshooting Analysis Services issues
    Besides, here is fix that describe the similar issue, and it was fixed in Cumulative Update 7 for SQL Server 2012 SP1, please refer to the link below to see the details.
    http://support.microsoft.com/kb/2897263/en-us
    Regards,
    Charlie Liao
    If you have any feedback on our support, please click
    here.
    Charlie Liao
    TechNet Community Support

  • CF8 Verity "The collection you specified does not exist or is not registered with the ColdFusion Search Service."

    I'm running ColdFusion 8 Enterprise on linux. I'm able to
    create collections and index them through cfadmin as well as in cfm
    application pages, but when trying to search I get the error
    "The collection you specified does not exist or is not
    registered with the ColdFusion Search Service."
    I'm using the collection name in cfsearch and not the full
    path.

    Would I have been better off posting this in the General
    Discussion section? Could the moderators move it if so,
    please?

  • HT201363 i have forgotten the security code and an e-mail is being sent to an e-mail account which does not exist.  How do i change the e-mail details

    We have forgotten the security code question and each time I request a reset it is being sent to an e-mail addres which does not exist.  How can I change the e-mail address to my current e-mail address.  We have put money onto an ITunes account which is asking for this security question.  This has never happened before. Any assistance would be appreciated.  thank you

    Hello, covey98. 
    Thank you for visiting Apple Support Communities.
    I would recommend reaching out to us via the link below to assist you with this issue.
    Apple ID: Contacting Apple for help with Apple ID account security
    http://support.apple.com/kb/HT5699
    Cheers,
    Jason H.

  • How to update zero to a column value when record does not exist in table but should display the column value when it exists in table?

    Hello Everyone,
    How to update zero to a column value when record does not exist in table  but should display the column value when it exists in table
    Regards
    Regards Gautam S

    As per my understanding...
    You Would like to see this 
    Code:
    SELECT COALESCE(Salary,0) from Employee;
    Regards
    Shivaprasad S
    Please mark as answer if helpful
    Shiv

  • I have an ExportPDF subscription under an old account for which the email does not exist anymore and I have forgotten the password.  Therefore I cannot reset the password.  I hav created a new Adobe account so how do I get the subscription for ExportPDF m

    I have an ExportPDF subscription under an old account for which the email does not exist anymore and I have forgotten the password.  Therefore I cannot reset the password.  I have created a new Adobe account so how do I get the subscription for ExportPDF moved to the new account?

    Hi lgmmo,
    I think your best best to get this resolved is to contact Adobe Customer Care. Here's the contact info: Contact Customer Care.
    A quick Chat session should get you fixed up.
    Please let us know if you have additional questions.
    Best,
    Sara

  • I'm in cycle mode, and 'merge' is clicked in preferences. However, when I record, my previous track data keeps getting overwritten. Does anyone know what I'm doing wrong. Interestingly, I can still see the data in the region.

    I'm in cycle mode, and 'merge' is clicked in preferences. However, when I record, my previous track data keeps getting overwritten. Does anyone know what I'm doing wrong. Interestingly, I can still see the data in the region.

    jamestait wrote:
    when I record, my previous track data keeps getting overwritten.
    since you didn't specify, are you recording in a single take?
    http://www.bulletsandbones.com/GB/GBFAQ.html#multipassrecording
    (Let the page FULLY load. The link to your answer is at the top of your screen)

  • Import option is not showing the Data Source created using ODBC

    Hi all,
    I'm new to OBIEE, just installed OBIEE 10g in my system with the help of some reply from this Forum (thanks to Kalyan for this).
    Now when I tried to create new rpd, the Import option is not showing the Data source I have created. I have created new Datasource in the SystemDSN tab of the ODBC Administrator window,I have tried this by creating the Datasource in the UserDNS tab as well.
    Mine is Windows 7 Ultimate. The new data source which I have created through the ODBC Administrator window is to connect to SQL 2008 (I'm trying to get some table from SQL 2008 database), I don't have Oracle data base.
    While creating the Data source ODBC Administrator is showing only two drives (SQL Server and SQL Server Native Client 10.0 ) , so I have created the Data source using the SQL Server Native Client 10.0 drive.
    Can some one help me to understand the issue and to solve it.
    Thanks,
    Mithun

    By calling your cellular data provider.

  • My MacBook Pro is not recognizing my external hard drive.  The hard drive is listed in disk utilities but an icon does not pop up and I cannot access the data.  Is there any way to resolve this?

    My MacBook Pro is not recognizing my external hard drive.  The hard drive is listed in disk utilities but an icon does not pop up and I cannot access the data.  Is there any way to resolve this?

    WE know Disk Warrior is more reliable, hence more useful, and should be in any disk mechanics toolchest.
    For the record, I don't know anything of the kind. I have yet to see evidence that Disk Warrior is useful at all.
    What I do know is that you seem to take every opportunity you get to promote it in these forums. Do you work for Alsoft?
    Let me be a little more explicit. My opinion is that Disk Warrior is a waste of money if one has backups. If a journaled HFS directory is so badly corrupted that it can't be repaired by Disk Utility, then the volume should be reformatted and restored from backup, which has the same effect as running DW, but is probably faster and doesn't cost $99.

  • Target 'install' does not exist in this project ",this is the error i get..

    i get this error when i try to install ,with the command : ant install,
    a webservice on tomcat, and when i type
    ant install it gives me this error:
    " Target 'install' does not exist in this project "
    i have a file in the same directory with the build.xml named install.xml
    and when i type ant build there is no error but by tiping ant install the error above occurs!

    ant install will execute the target install. As you did not define the build file, the standard one is taken: build.xml.
    These options could be of interest for you:
      -buildfile <file>      use given buildfile
        -file    <file>              ''
        -f       <file>              ''

  • I have an "old" Apple ID set up 13 years ago.  Apple has now gone to using email address as the apple ID.  I have apps to update and they ask for old ID.  it does not exist.  How can I get the ID on the app changed to the new apple ID

    I set up an apple id many years ago when itunes was established.  Within the past year or so, Apple has changed to using email address as user id.  My problem is that I have many applications that I can not update due to the fact that it is asking for the password of the old ID.  It does not exist anymore.  Any ideas on how to get the new apple id associated with the application without deleting the application.  Several of these apps I purchased.

    You can not merge accounts.
    Apps are tied to the Apple ID used to download them, you can not transfer them.

  • Firefox/3.6.10 shows message whenever I click on an icon needing Internet access, saying 'Firefox couldn't install this item because "install rdf" (provided by the item) is not well-formed or does not exist' and advising me to contact the author - ???

    Whenever access to the Internet is needed, clicking on any icon or link (including the Firefox icon) results in a delay of around 20 secs., followed by the appearance of the error message, headed "Malformed File". The message reads 'Firefox couldn't install this item because "install rdf" (provided by the item) is not well-formed or does not exist. Please contact the author about this problem.'
    Clicking OK or closing the box leads to a further delay of about 20 secs. after which the required action takes place! Of course, it could be said that it's really only a delay, so I should just get used to it, but it's still a malfunction, it's a pain in the neck or another region, and I really would like to cure it. Any suggestions - please????

    https://support.mozilla.com/en-US/questions/756907

  • Do we have option not to refresh the data in AP invoice while copying from GRN and change the date of the invoice in SAP 9 PL 0

    Hi
    I have update tax details in GRPO but while copy to AP invoice system pick posting date/ document date as system date and if i change the date the screen refresh and the tax details i have updated it change. that i do not want.
    Is there any option so that GRPO date will copy in ap invoice so that i need not to refresh the screen
    regards
    Ashish Garg 

    Hi,
    Please provide an example for tax details. Make note on these,
    1. Whenever copy GRPO to AP invoice, posting and document date is system date. This is default design system
    2. If you change these dates in AP invoice, your payment to vendor leads to confusion.
    For example:
    You have received items on 25-03-2014. But vendor raised invoice on 03/04/2014.
    Thanks & Regards,
    Nagarajan

  • SQD3 select options not fetching all the data?

    Hi abapers,
    standard SDQ3 tcode is not fetching all the data?
    In this standard t.code how to find that for different Select-options, different data retrieval queries have been written?
    where to find the select options conditions are written?
    thans in advance

    This could be an issue as ROWTERMINATOR and FIELDTERMINATOR are not well placed.
    Use FORMAT FILE while using BULK INSERT.

Maybe you are looking for

  • How to add a value set in a custom form in query_find screen in R12 please

    Hello,I need to add a value set fileld found in the fnd_flex_value_set table in a query find screen . How do I proceed please ? Do I create a record group followed by a 'LOV' ? Thanks.

  • Calling a static method from another class

    public class Command     public static void sortCommands(String command, String order, List object)          if(command.equalsIgnoreCase("merge") && order == "a")               object.setAscending(true);               Mergesort.mergesort(object.list)

  • After Recent upgrade to iOS 5.0.1 iphone 3GS no longer voice dials.

    I have an iphone 3gs, and right up until I did the update a few days ago, I used voice command to dial frequently. Now, after the 5.0.1 software upgrade, my voice command recognizes commands for ipon and time only. It doesn't recognize any calling fe

  • Dynamic Environment Switching For REPORTS_PATH 11g

    Oracle Fusion Middleware 11.1.1.2.0 with Patch Set 2 (11.1.1.3.0) - Linux Dynamic Environment Switching For REPORTS_PATH doesn't work. According to documentation B32121-03 (Publishing Reports to the Web with Oracle Reports Services 11g Release 1 (11.

  • Question on Data Storage drive and its related hardware

    DB Version:11gR2 To set up RAC, I have 2 x86(Intel) PCs of same spec. I am going to install Solaris 5.10 (x86) on both. I don't want to use VM ware or Openfiler. Question1. I would like to know what storage Device i should use for a Home RAC setup? Q