Special Characters and spaces in Tablenames and Column Names are allowed ?

Hi
I have created two tables in Oracle10g
as follows
SQL> create table test(columna number,columnb varchar2(20),primary key(columna));
Table created.
SQL> insert into test values(1,'test');
1 row created.
SQL> commit;
COMMIT är utfört.
SQL> create table "test quote"("#" number,abc number,primary key("#"));
Table created.
SQL> insert into "test quote" values(1,2);
1 row created.
SQL> commit;
COMMIT är utfört.
SQL> select * from "test quote";
# ABC
1 2
SQL> select * from test;
COLUMNA COLUMNB
1 test
Now I want to cache the tables and their data into TimesTen
The cache group for table test which is not having any spaces and special characters in table name and column names is created perfectly.
But when I create the cache group for table "test quote" which is having special characters and spaces it gives error :
Command>create readonly cache group w2 from testuser.test(columna number,columnb varchar2(20),primary key(columna));
Command>select * from test;
<1,test>
1 row found.
Command>create readonly cache group w3 from testuser."test quote"("#" number,abc number,primary key("#"));
5140: Could not find TESTUSER.TEST QUOTE in Oracle. May not have privileges.
Command Failed.
Now there is contradiction that why cache group for table test is created successfully and why it is not being created for table "test quote".
What I think is if special characters and spaces in column names and table names are possible in Oracle then it sould be possible in TimesTen.
Any possible solution.
Looking forward for your reply.
Please help I am stuck badly.
/Ahmad

Hi
Problem Solved ....... Remeber only Capital letters work with special characters ......
/Ahmad

Similar Messages

  • Storing carriage return and other special characters in a TestStand variable and passing to LabVIEW

    I am using TestStand step to call a LabVIEW VI that writes commands to a serial device.  The device expects a carriage return at the end of the command.  I can create a constant string in TestStand with the carriage return, e.g., "ATA\x0D" and pass that to a LabVIEW string control which shows ATA\r and the VI works properly.
    To provide consistency and flexibility in my code, I want to store the terminator character(s) in a TestStand variable.  However, when I try to use an expression to create the command string, i.e. "ATA" + "Locals.Terminator", where Locals.Terminator is set to "\x0D", my LabVIEW VI string control shows "ATA\\x0D" which doesn't work.  And when I try Locals.Terminator set to "\r", the LabVIEW string control shows "ATA\\r" which doesn't work either.
    Is there a way to store special characters in a TestStand variable and pass them to LabVIEW as special characters?  I saw in another post that if you edit the TestStand variable by pressing Cntl-Enter, it will store  the newline \n properly and it can be sent to LabVIEW - that works for me as well for \n.  But  I need to send a carriage return.
    I've attached my test sequence and the corresponding LabVIEW VI with a string control.
    Hans
    Attachments:
    Special Chars.seq ‏27 KB
    String Passing.vi ‏13 KB

    Hi Hans, 
    Thanks for your detailed explanation and examples.  In TestStand, change the String parameter's String Type to Binary String instead of ASCII.  Then it will pass the desired value.
    Cheers,
    David Goldberg
    National Instruments
    Software R&D

  • Column names are all uppercase?

    When i run a query on an Oracle database the column names are all uppercase (as retrieved from ResultSetMetaData).
    In my query i am putting aliases i.e. select id idName, section sectionDetails ..... etc. but the column name always comes out in capital letters. Is this always the case or can i change it somehow?

    SQL, not just Oracle, is case insenstive unless quoted identifiers are used.
    And one shouldn't use table/field names in a GUI, which is probably what is happening, unless one is creating a database GUI (vs an application GUI.)

  • Reading special characters from a flat file and inserting into DB

    I'm reading data with special characters like . etc from a flat file , assigning the data to variable in my anonymous block and inserting into my DB. But the show up as inverted ? s. Any clues about how to do this?
    If i try to do the insert directly it works. It seems like the error occurs when reading this data into a variable
    thanks for the help
    Lalit Bhatia

    lalit, this is probably an character set problem, the default on Database creation tends to be 7bit Ascii which does not support special characters, it's been a while since I set up a db in this way, but you need to change settings in oracle.ini. The db will need to be restarted for this. Also, to check current settings try:
    select * from NLS_DATABASE_PARAMETERS
    You want an 8bit, unicode or multibyte character set. Sorry I cannot remember moer off the top of my head, try searching on NLS or character set

  • I have a MacBook purchased in 2009 with Snow Leopard. I tried to access "special characters" from the Finder menu and an intermittent blank pop ups and will not stop. It also happens when I run Word or Pages.

    The blank pop up began as I tried to access "special characters" from the finder menu. I restarted, turned off and restarted and it did not work. It interferes with any application because I cannot work fast. Every new step takes a few seconds longer such as saving, finding text, check spelling and many more. I am desperate to solve this. Thanks in advance for any help given.
    Consuelo Corretjer

    Use the trackpad to scroll, thats what it was designed for. The scroll bars automatically disappear when not being used and will appear if you scroll up or down using the trackpad.
    This is a user-to-user forum and most people will post on here if they have problems. You very rarely get people posting to say there update went smooth. The fact is the vast majority of Mountain Lion users will not be experiencing any major problems with the OS, or maybe with apps which are not compatible, but thats hardly Apple's fault if developers don't update their apps.

  • In Pages for iPad is it possible to insert special characters like those for logic and math?

    Hello there,
    Is there a way to digit special characters in Pages for iPad?
    I need to include in my document logical symbols.
    Thank you!

    Thank you Tom Gewecke for that app suggestion!  I've been wanting this for a long time.

  • Special Characters viewing in PC Ultraedit and not in MAC Textwrangler

    Hello everybody,
    I had a difficulty in viewing special characters in PC Ultraedit vs MAC Textwranger in a InDesign tagged text file.
    When the open the InDesign tagged file in PC Ultraedit, all special characters are viewing in a correct format. But the same tagged text file open in MAC Textwranger, this special characters are in a form of junk characters.
    Please anybody know whats the issue. If you have answers for this issue, please share with me. Its very helpful for us.
    Below screenshots explains the exact problem:
    PC Ultraedit:
    MAC Textwranger:
    Thanks for any helps!

    Surutai1982 wrote:
    We are converting word manuscripts to styled text file ...
    You can see the encoding is already off in your Tagged Text data file, so the error lies in the program you used to do that conversion.

  • Abap TO CONVERT SPECIAL CHARACTERS TO SPACE

    I have a field in BI "zpustreg" which has values with - and # which is not allowing me to load the data to cube so I am writing this code in transformation to convert any special character to space. but it is having error if you can help me fix the code below would really appreciate it
    <b>Abap Code to Load ZPUSTREG</b>
      METHOD compute_ZPUSTREG.
      IMPORTING
        request     type rsrequest
        datapackid  type rsdatapid
        SOURCE_FIELDS-/BIC/ZPUSTREG TYPE /BIC/OIZCUSTREG
       EXPORTING
         RESULT type tys_TG_1-/BIC/ZPUSTREG
        DATA:
          MONITOR_REC    TYPE rsmonitor.
    $$ begin of routine - insert your code only below this line        -
    ... "insert your code here
    *DATA:Monitor_REC TYPE rsmonitor.
    DATA:L_D_OFFSET LIKE sy-index.
    CONSTANTS:c_allowed(60) TYPE c.
    Value `ABCDEFGHIJKLMNOPQRSTUVWXYZ!"%&'()*+,-/:;<=>?_0123456789_’.
    RESULT = SOURCE_FIELDS-/BIC/ZPUSTREG
    TRANSLATE RESULT TO UPPER CASE
    DO 60 TIMES.
    L_d_offset = sy-index – 1.
    IF RESULT+1_offset(1) CO c_allowed.
    Else.
    RESULT+1_d_offset(1) = ` ’.
    ENDIF.
    ENDDO.
    ENDMETHOD.
    <b>
    E:Statement "VALUE" is not defined. Check your spelling. spelling.
    E:Unable to interpret "C". Possible causes of error: Incorrect spelling</b>
    Thanks
    Soniya

    Hello Soniya
    There is simply a '.' at the wrong place:
    CONSTANTS:c_allowed(60) TYPE c.  "<- wrong, remove
    Value `ABCDEFGHIJKLMNOPQRSTUVWXYZ!"%&'()*+,-/:;<=>?_0123456789_’.
    CONSTANTS:c_allowed(60) TYPE c
    Value `ABCDEFGHIJKLMNOPQRSTUVWXYZ!"%&'()*+,-/:;<=>?_0123456789_’.
    That's it.
    Regards
      Uwe

  • Excel 2013 connect to a cube, and Power View concatenate the column name by default

    Hi Guys,
    Currently, we met a problem with excel services to connect to a cube, when we develope a Excel 2013 Powerview report, the data model column name is concatenate into terrible name by default. e.g. Dim TimeDate Date, Dim TimeTime HierachyYear -Month.
    But when start up the data model with Powerpivot, everything gone well. We knew that it can be manual update the name as workaround, but we need to do it every time we create a new powerview with the data model.
    Is that any other solution we can do with?
    Please help.
    Johnny

    Hi,
    As this question is more related to PowerView Report, I suggest you can create a new post in the PowerView forum, you will get more helpful information from there.
    PowerView Forum:
    https://social.technet.microsoft.com/Forums/en-US/home?forum=powerview
    Best Regards
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Jerry Guo
    TechNet Community Support

  • Switching from delimited to fixed width and had to retype 115 column names

    Hi we run 2012 enterprise.  I just changed a delimited flat file over to fixed width and had to retype all 115 column names.  Is there a way to preserve at least some of what ssis already knows (eg col names) in the flat file connection when
    this kind of changeover is occuring?  

    Thx Mike.  I appreciate your help so dont take this the wrong way.  
    Lets be honest.  This kind of behavior and some of the others I've posted recently when it comes to switching in and amongst flat file formats (fixed,unicode,unnecessary data type conversion etc etc) in ssis cannot possibly be by "design". 
    You might think I'm arrogant but hear me out.  As a graduate from one of the better engineering schools in the US and having earned a BSCS from that school, my thinking is that even a first year college student would design this little part of
    ssis in a more flexible fashion.  And the sad part is that legacy mainframe technologies from way way back baked this kind of flexibility into their products without add ins.  SSIS is purportedly .net technology and as such should follow the
    most fundamental rules of OO which include flexibility and reusability. 
    We should be more careful about the term "by design".  I believe this is actually a limitation which I'm sure would have been dealt with had there been more time, money and experience invested.  One of my other posts cites a recommendation (from
    ssis) that displays along with one of these flat file errors and has something to do with dt_ntext.  But the recommendation actually doesnt work.  So are we going to say that a recommendation that doesnt work is also by design?  I dont think
    so.  By design infers "for valid reasons".   And I dont believe there are any valid reasons for this/these behaviors.   If there are , pls share.

  • Execute SQL Task fails when specific column names are mentioned in Excel Query

    Hi,
    I have a requirement for extracting Excel data with thespecific column order. So instead of using the below query,
    Select * From [Sheet1$A1:ZZ1]
    I use the below one,
    Select col1,
    col2,
    col91
    From [CRM$A1:ZZ1]
    So I have totally 91 columns.
    I don't face any issues when i use the before query. i.e. direct select * from sheet1
    But when i specify column names and do a select from the sheet it throws error as below,
    [Execute SQL Task] Error: Executing the query "Select
    [Col1] 
    From [Sheet1$..." failed with the following error: "No value given for one or more required parameters.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not
    set correctly, or connection not established correctly.
    I just need to retrieve the column name alone and not any of the values to it. So when i do simple select * it gives the column names in the order of what it is been with the excel. But i do want it to be sorted in alphabetically and to retrieve the column
    names. 
    I am not getting any proper solution for this for past 1 and a half days. May anyone of you please help me get it sorted? - Thank you!
    --------------------------- Radhai Krish | Golden Age is no more far | --------------------------

    Please use something like below:
    SELECT F1 AS Col1, F2 AS Col2, F3 AS Col3, ...
    FROM [Sheet1$A1:ZZ1]
    Cheers,
    Vaibhav Chaudhari
    [MCTS],
    [MCP]

  • Creating DOMDocument when column names are not known

    I want to make a DOMDocument from a table of which I do not know the column names.
    I already got pretty far: I could generate XML elements having the name of each of the columns.
    I still have a problem when trying to retrieve the cell values from the table.
    The code is below.
    The problem I have is situated after the line:
    /* QUESTION : HOW DO I REPLACE get_rows.label BY something dynamic, i.e. I want to use the value o col_name as the column name */
    I do not know how to retrieve the value from the table but by hardcoding the column name (i.e. get_rows.label where label is a column name). What I want to use is the VALUE of the variable col_name as the column name.
    Many thanks in advance.
    The code:
    set serveroutput on
    DECLARE
    doc xmldom.DOMDocument;
    main_node xmldom.DOMNode;
    root_node xmldom.DOMNode;
    row_node xmldom.DOMNode;
    user_node xmldom.DOMNode;
    item_node xmldom.DOMNode;
    root_elmt xmldom.DOMElement;
    row_elmt xmldom.DOMElement;
    item_elmt xmldom.DOMElement;
    item_text xmldom.DOMText;
    CURSOR DF_ROWS IS SELECT * FROM DF_COUNTRY;
    /* get the column names */
    CURSOR DF_COLUMNS IS SELECT COLUMN_NAME FROM USER_TAB_COLUMNS WHERE TABLE_NAME = 'DF_COUNTRY';
    col_name varchar(20);
    cell_value varchar(40);
    BEGIN
    /* OPEN DF_COLUMNS; */
    /* create a DOM document and append a root element */
    doc := xmldom.newDOMDocument;
    main_node := xmldom.makeNode(doc);
    root_elmt := xmldom.createElement(doc, 'ROOT');
    root_node := xmldom.appendChild(main_node, xmldom.makeNode(root_elmt));
    /* loop over the records */
    FOR get_rows IN DF_ROWS LOOP
    row_elmt := xmldom.createElement(doc, 'ROW');
    /* xmldom.setAttribute(item_elmt, 'num', get_users_rec.rownum); */
    row_node := xmldom.appendChild(root_node, xmldom.makeNode(row_elmt));
    /* Now loop over all the columns (cells) and create an element for each of them */
    FOR get_columns IN DF_COLUMNS LOOP
    col_name := get_columns.COLUMN_NAME;
    DBMS_OUTPUT.PUT_LINE(col_name);
    item_elmt := xmldom.createElement(doc, get_columns.COLUMN_NAME);
    item_node := xmldom.appendChild(row_node, xmldom.makeNode(item_elmt));
    /* QUESTION : HOW DO I REPLACE get_rows.label BY something dynamic, i.e. I want to use the value o col_name as the column name */
    item_text := xmldom.createTextNode(doc, get_rows.label);
    item_node := xmldom.appendChild(item_node, xmldom.makeNode(item_text));
    END LOOP;
    END LOOP;
    xmldom.writeToFile(doc, 'C:\ClinCapt\Output\test.xml');
    xmldom.freeDocument(doc);
    END;

    I needed to manipulate the XML afterwoods (i.e. combine it with queries to other tables in a single large XML document).Did you try to combine all these subsequent queries into one single query and pass it to the XML packages to generate the XML all at once (instead of doing it in stages).
    SQL> select dbms_xmlquery.getxml('select dname,
      2                              cursor(select empno, ename
      3                                     from scott.emp
      4                                     where rownum < 3) employees
      5                              from scott.dept where rownum < 3') from dual ;
    DBMS_XMLQUERY.GETXML('SELECTDNAME,CURSOR(SELECTEMPNO,ENAMEFROMSCOTT.EMPWHEREROWN
    <?xml version = '1.0'?>
    <ROWSET>
       <ROW num="1">
          <DNAME>ACCOUNTING</DNAME>
          <EMPLOYEES>
             <EMPLOYEES_ROW num="1">
                <EMPNO>7369</EMPNO>
                <ENAME>SMITH</ENAME>
             </EMPLOYEES_ROW>
             <EMPLOYEES_ROW num="2">
                <EMPNO>7499</EMPNO>
                <ENAME>ALLEN</ENAME>
             </EMPLOYEES_ROW>
          </EMPLOYEES>
       </ROW>
       <ROW num="2">
          <DNAME>RESEARCH</DNAME>
          <EMPLOYEES>
             <EMPLOYEES_ROW num="1">
                <EMPNO>7369</EMPNO>
                <ENAME>SMITH</ENAME>
             </EMPLOYEES_ROW>
             <EMPLOYEES_ROW num="2">
                <EMPNO>7499</EMPNO>
                <ENAME>ALLEN</ENAME>
             </EMPLOYEES_ROW>
          </EMPLOYEES>
       </ROW>
    </ROWSET>
    SQL>                                                      

  • SAINT import of TU/SPS gets error 207 Invalid Column name 'area'

    Hi,
    I have installed a EHP5 ECC 6 system, Windows 2008 SQLServer 2008R2. Have used SolMan MaintOpz to download the additional Technical Usages (TU) like HCM and SPS to be imported into the system using transaction SAINT.
    I am using the stack.xml file for the Saint import.
    IMPORT phase have completed, but now I am getting an SQL error 207 duing the XPRA_EXECUTION phase when doing method execution. This stops the SAINT import and when I click on Continue button i will et the same error and SAINT will stop again.
    The error is for the support package SAPKB70204 Basis Support Package 04 for 7.02.
    The return code for method execution is RC 8.
    When I check the log file, the errors are
    SQL Error 207 Invalid colun name 'area'
    Errors occurred during post-handling MSS_SDBP_AFTER_IMP for SDBP L
    The error affects the following components: BC-DB-MSS
    Further analysis find that it is trying to run a SQL script and the script fails due to the above error.
    I read the script, it contains statements to create a table with a field name 'area' and select statements to this table.
    I have tried patching the SAPEXE and SAPEXEDB kernels to the latest but still the same error. Already on the latest kernel level and dbmssslib.dll and tp and r3load and r3trans files due to the patch.
    Without fixing this error, my SAINT import will never complete and I will not have a functioning ERP system. The entire team is waiting for me so plese can anyone help me? I am desperate.
    Thank you for any advise or help.

    Check
    Note 769842 - SQL errors occur in XPRAS_UPG phase
    Markus

  • How to read the data from an internal table,when column names are known

    Hi All
    I have a specific requirement. I got an internal table with many fields (let it be my_tab).  Some of the fieldnames (column names in internal table my_tab) are stored in separate internal table(let it be my_fields).
    I need to store/read data corresponding to the fields (whose name is stored in my_fields) from my_tab.
    I am able to build dynamic table (referred by field-symbol) with respect to the given field names in my_fields.
    But i am unable to read the data corresponding to the fieldnames from my_tab.
    Please provide  me some pointer in this regard.
    Regards
    Swetabh Shukla

    HI All
    Thanks for the prompt response. I got solution for my question. Please check below thread. For quick reponse i posted my question in one more category. Thanks to all of you.
    How to read internal table w.r.t. fieldnames stored in other table

  • SQL query not retrieving special characters in like O', M÷ and û

    Hi,
    I have a sql script to query database. The output is a string. When I execute this script through a Korn shell script to send the query result to a .csv file, it is showing some characters of the output as below.
    The characters O’ is displayed as ?
    The characters M÷ is displayed as ?
    The characters û is displayed as u
    I am able to retrieve the data as it is while running the script through SQL * Plus and spooling the output to a .csv file.
    If anybody is having solutions for this please reply.
    Thanks in advance for your kind help
    Regards,
    Sreesha
    Edited by: user530278 on Oct 18, 2008 2:56 PM

    user530278 wrote:
    Hi,
    I have a sql script to query database. The output is a string. When I execute this script through a Korn shell script to send the query result to a .csv file, it is showing some charcters of the output as below.
    The characters O’ is displayed as ?
    The characters M÷ is displayed as ?
    The characters û is displayed as uThis sounds like an NLS client setting issue.
    Note that there are scenarios where the data is "incorrectly" stored in the database but can be retrieved "successfully" from some clients. This is the case if you specify the same character set at your client as you have as database character set and this client character set setting is wrong, which means you ought to have specified a different client character set than you have in the database.
    Specifying the same character set on client and server prevents any conversion from taking place, so as long as the database can store the data (e.g. multi-byte characters won't be stored correctly in single-byte character set database no matter what you do) it will be stored "as is". If you now retrieve the data using the same setting, it looks correct, but if you use a client with a different character set setting that requires conversion the data will be mangled.
    The database character set can be identified using the dictionary view NLS_DATABASE_PARAMETERS, parameter "NLS_CHARACTERSET".
    The client character set can be identified by issuing the following at the SQL*Plus prompt:
    SQL> @[%NLS_LANG%]You'll get a message similar to:
    "Unable to open file [AMERICAN_AMERICA.WE8MSWIN1252]"
    The string after the dot represents the client character set.
    If you get this:
    Unable to open file "[%NLS_LANG%]"
    then the NLS_LANG client setting is undefined.
    Please follow this very useful link regarding client NLS issues and how to resolve them, in particular to determine what is your correct client NLS_LANG setting:
    http://www.oracle.com/technology/tech/globalization/htdocs/nls_lang%20faq.htm
    I am able to retreive the data as it is while running the script through SQL * Plus and spooling the output to a .csv file.You mean that when using SQL*Plus interactively the data is shown/spooled correctly, whereas if you run a script non-interactively then the data is mangled?
    Note that if you e.g. use "cron" to schedule/execute your script that you need to take care of the Oracle specific environment variables yourself because no logon scripts are executed when cron forks the process to run. May be you need to define the NLS_LANG variable explicitly or call/source the corresponding script to define your default Oracle environment that includes the NLS_LANG setting.
    It probably depends on your environment, operating system, etc. and how you set the Oracle specific settings, e.g. environment variables under Unix, registry settings under Windows etc.
    Use the above mentioned check regarding NLS_LANG setting in the different cases that you encounter to get started.
    Regards,
    Randolf
    Oracle related stuff blog:
    http://oracle-randolf.blogspot.com/
    SQLTools++ for Oracle (Open source Oracle GUI for Windows):
    http://www.sqltools-plusplus.org:7676/
    http://sourceforge.net/projects/sqlt-pp/

Maybe you are looking for

  • Leave quotas

    Hi , How to creat the folowing senario: An employee is eligible for 6 leaves per year. In case of any new joining, the leaves shall be credited on pro-rata basis based on Date of Joining. In case, the joining is on or before 15th of calendar month ,

  • Aperture Dual Display Mode Poor?

    One of the big reasons I picked up Aperture was its ability to utilize my dual display set-up, but the implementation in Aperture seems hamstrung to me. I have a 22" Cinema Display as my main screen with a 17" Studio Display to it's left. What I'd LI

  • How to create a sequence of stills from a video clip?

    Hi, I am doing a video project for college and I want to create a stop motion style scene. I took a continuous video of myself drawing bit by bit a picture on a chalkboard and stepping out of the shot after each piece was drawn, now i want to edit ou

  • Discarding the last TextLine and trying again with a new width

    Hi all, I'm using TextBlock to create a paragraph.   This paragraph has regions which do not render any text (so that I could put some images down within the generated text in a way more similiar to CSS float styles.  BTW, I'm not trying to achieve a

  • "Not Read" receipt received from sender for all emails sent.

    We recently migrated from Exchange 2010 to Exchange 2013 and I've got one user that started having a strange problem after the migration.  She has Outlook set to request a read receipt for all emails that she sends and that works fine except that for