Create username containing a special character via sqlplus

I can create and use users that have a dash using Enterprise Manager. I cannot, however, using sqlplus.
SQL> create user foo-bar identified by foo;
create user foo-bar identified by foo
ERROR at line 1:
ORA-00922: missing or invalid option
If I wrap the ID in quotes it appears to work, but the user is created with the quotes in the ID:
SQL> create user "foo-bar" identified by foo;
User created.
sqlplus foo-bar/foo
SQL*Plus: Release 11.1.0.6.0 - Production on Mon Jul 28 09:21:33 2008
Copyright (c) 1982, 2007, Oracle. All rights reserved.
ERROR:
ORA-01017: invalid username/password; logon denied
With quotes, it lets me login:
Enter user-name: "foo-bar"
Enter password:
Connected to:
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - 64bit Production
This is in contrast to users created using EM, who can login via sqlplus sans the quotes.

Double-quotes retain case. The default is uppercase. So, if CREATEing the USER requires double-quotes, but logging in should not, the USER should be CREATEd in uppercase:
SQL> CREATE USER "FOO-BAR" IDENTIFIED BY foo;
User created.
SQL> GRANT CREATE SESSION TO "FOO-BAR";
Grant succeeded.
SQL> CONNECT FOO-BAR
Enter password:
Connected.

Similar Messages

  • String Operations which contain the special character '#' in BDC Session

    Hi
    Iam getting a file from the application server, It is having the field seperator # .So i worked with SPLIT statement. Here i found that SPLIT is not working for # . Also i have tried with REPLACE ,It is also not working for # . But i found that both the statements are working for , and space also. So can anyone give me with any other alternative.
    Your help is highly appriciated. Below is the code Iam working with.
    1) replace '#' with ',' into string-string.
    2) split string-string at '#' into
    wa_vbak-auart wa_vbak-vkorg wa_vbak-vtweg wa_vbak-spart wa_vbak-kunnr.

    Hi meshack prasan appikatla,
       If a character is non printable character then the SAP display that character as '#', But this # is not a real character that is the reason you are not getting the perfect answer. I thins your application file is tab de eliminater file.
    Instid of declaring horzantal tab call you can use the follwoing logic.
    (I think this is the better one)
    use the following method.
    create a hexa decimat variable.
    Data:
    c_hextab(1) TYPE x VALUE '09'.
    use this hexadecimal character in your program
    FORM fetch_header .
    CLEAR fs_bbkpf.
    SPLIT t_itab
    AT c_hextab
    INTO fs_bbkpf-tcode
    fs_bbkpf-comp_id
    fs_bbkpf-seq_no
    fs_bbkpf-date
    fs_bbkpf-rec_type_code
    fs_bbkpf-rec_count
    fs_bbkpf-tot_amt
    fs_bbkpf-file_format
    fs_bbkpf-iss_id
    fs_bbkpf-proc_id
    fs_bbkpf-reg_id
    fs_bbkpf-proc_platform.
    IF fs_bbkpf IS NOT INITIAL.
    CASE fs_bbkpf-rec_type_code.
    WHEN '28'.
    w_header_28 = t_itab.
    WHEN '05'.
    w_header_5 = t_itab.
    WHEN OTHERS.
    w_header_ignr = w_header_ignr + 1.
    TRANSFER t_itab TO p_file4.
    ENDCASE. "CASE fs_bbkpf-rec_type_code
    APPEND fs_bbkpf TO t_bbkpf.
    ENDIF. "IF fs_bbkpf IS NOT INITIAL
    ENDFORM. " fetch_header
    Regards.

  • Inserting Special Character via SQLLDR

    How can I insert special characters such as CHR(10) or CHR(13) when I'm loading data contained within a file using SQLLDR. Are there any special instructions that need to be specified within the CONTROL file.
    Without any instructions, they are taken just as a collection of charcters.....
    Please lemme know.
    Thanks
    Chandra M.

    If you want :
    first line
    second linein your field, and have
    first line |second linethen in your control file, use the specification
    txtfield position(x:y) char  "replace(:txtfield, '|', chr(10))"

  • Create user with special character

    Hi,
    We are getting the error while creating a user with special character in a filed. The same user is getting created in development environment but not able to create the same in Production environment.
    We tried to check if any configurations are different but couldn't find any clue. Please help in this regards.
    +Exception caught while insertng or updating the user.java.lang.RuntimeException: javax.naming.directory.InvalidAttributeValueException: [LDAP: error code 19 - Value of attribute "uid" contains extended (8-bit) characters: americas-Isosystem_ Serviço]; remaining name 'uid=americas-Isosystem_ Serviço, ou=People'+*
    Regards,
    Abhinav

    No there are no restrictions from LDAP,
    also I am able to give 32 character password in Coreid Console,
    it seems that the web services have a restriction on password length.
    Moreover, these web services used to accept 32 characyer passwords few months ago. we lately recognized this issue happening recent times.
    I suspect some Oracle hotfix or patch would have made the difference.
    But I am clue less how to trace it,
    Any help would be appreciated

  • Unprintable special character in RDP file

    We're having strange issue. We use RDP files generated in RDP client, we then sign those using rdpsign.exe.
    Recently after upgrading our infrastructure from W8/2012 to W8.1/2012R2 we noticed that every RDP file generated in RDC 8.1 client contains a special character on first position that is not visible in normal text editor and is only visible in hex editor.
    This character wasn't there in W8/2012. When I create the RDP file manually (typing (copy/pasting) all the options in a text file), it doesn't contain any special character, but when I later sign that file file rdpsign, it adds that character again.
    How do we get rid of it? It's preventing our provisioning system from substituting username.

    Hello MarkosP,
    Thanks for contacting Microsoft.
    These bytes are regular UTF-16 byte order marks. See here:
    http://en.wikipedia.org/wiki/Byte_order_mark#UTF-16
    If the tool you use on the RDP file does not support UTF-16, you can try to convert the file to ASCII. This will probably work for most RDP files, except if some
    string uses some unicode character not present in the ASCII character set. Here is some info (see the powershell section in the first post/question):
    http://stackoverflow.com/questions/64860/best-way-to-convert-text-files-between-character-sets​
    Best regards,
    Sophia Sun
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • File Adapter - special character in Filename

    Hi,
    i have a question concerning file adapter.
    Scenario: we are polling files via file sender adapter (FTP).
    Problem: if the filename contains a special character, an error is thrown with 'The System cannot find the file specified'
    Scope: Special character in filename (not in payload)
    Installed: XI 3.0 SP 19 on Linux
    Questions:
    - what FTP implementation does XI use?
    - What do i have to check/upgrade to unicode?
    - is it an OS problem or an Java problem or a XI problem?
    - or is it not possible copiing files with special characters in filename?
    Thank you very much in advance.
    Michael

    Hi Michael,
    The file/FTP adapter supports both passive and active FTP data connection. You can select the data connection while configuring the adapter.
    The file/FTP adapter follows specification RFC 959. The specification can be found on the Internet under  www.ietf.org/rfc/rfc0959.txt.
    For FAQs about the file/FTP adapter, see SAP Note 821267. Please note that you'll need an account to log in on service.sap.com.
    Question: How are you specifiying the file name? i.e. Are you using placeholders, like ?, *, *.txt, etc ?
    If there's a problem with the filenames, then it should be a problem in the JAVA implementation of the adapter I assume. So you could for instance build your own adapter extension to by-pass that problem.
    Just for your information; I haven't encounter a problem with filenames in other projects.
    Good luck!

  • How to detect any special character ina string?

    Hi!
    I'm having a problem with a string. Basically the string is an output of some function and that may contains some special character which is not shown in the string - for example - chr(10)/chr(13) etc.
    Is there any method or procedure that can detect all the special character inside that string and remove them all other than all the characters and digitis which is in form of character? I'm using oracle 9i.
    Thanks in advance for your reply.
    Regards.
    Satyaki De.

    I've tried your solution - but i don't think it is working --
    satyaki>ed
    Wrote file afiedt.buf
      1  create or replace function extract_printable(vc varchar2)
      2  return varchar2
      3  is
      4  c_non_printable varchar2(33)
      5    := chr(00)||chr(01)||chr(02)||chr(03)||chr(04)||chr(05)||chr(06)||chr(07)||chr(08)||chr(09)
      6    || chr(10)||chr(11)||chr(12)||chr(13)||chr(14)||chr(15)||chr(16)||chr(17)||chr(18)||chr(19)
      7    || chr(20)||chr(21)||chr(22)||chr(23)||chr(24)||chr(25)||chr(26)||chr(27)||chr(28)||chr(29)
      8    || chr(30)||chr(31)||chr(127);
      9  begin
    10    return(translate(vc,'a'||c_non_printable,'a'));
    11* end;
    satyaki>/
    Function created.
    satyaki>
    satyaki>select length(extract_printable('this is        ')) src
      2  from dual;
           SRC
            15
    satyaki>But, thanks for your reply.
    Regards.
    Satyaki De.

  • Dynamic table issue with special character

    Hi All,
    While creating a dynamic internal table if the fieldname in the fieldcatalog contains any special character like dot(.) , ot is showing the message without creating the dynamic internal table.
    * Create a dynamic internal table with this structure
    CALL METHOD cl_alv_table_create=>create_dynamic_table
    EXPORTING
    i_style_table = 'X'
    it_fieldcatalog = gt_dyn_fcat
    IMPORTING
    ep_table = gt_dyn_table
    EXCEPTIONS
    generate_subpool_dir_full = 1
    OTHERS = 2
    gt_dyn_fcat contains fieldname with dot.
    So the table gt_dyn_table is not creating.
    I searched in SCN andd found another method
    CALL METHOD
    cl_abap_structdescr=>create
    But the same issue is aslo here in this method.
    Please suggest me any new method in sap to solve the issue.
    Best Regards,
    Munu

    Hi,
    Every programing language has its syntax rules.
    If you want to use this language you have to follow the rules.
    All the peoples involve with SAP ABAP must follow the rules.
    and here it is: from http://help.sap.com/abapdocu_740/en/abennaming_conventions.htm
    How abut using underscores (_)
    Regards.

  • Error "TK287" when releasing a request - Special character "_" is invalid.

    I have some tables in Solution Manager and having some warnings:
    Table: CRM_SVY_DB_ST
    Field value:CRM_SVY_GENERATE_BSP_TEMPLATE.XSLT
    Field: TRANSFORMATIONID
    It doesn´t accept the special character "_"
    Below the error when releasing and the explanation of the error in the sequence.
    Key messages: TABU CRM_SVY_DB_ST 300DSWPCI_ISSUE_FDBCK 0000000000DCRM_               
    Special character "_" in generic key                                                                               
    Key messages: TABU CRM_SVY_DB_ST 300DSWPCI_ISSUE_FDBCK 0000000000DCRM_               
    Special character "_" in generic key                                                                               
    Key messages: TABU CRM_SVY_DB_ST 300DSWPCI_ISSUE_FDBCK 0000000000DCRM_               
    Special character "_" in generic key                                                                               
    Key messages: TABU CRM_SVY_DB_ST 300DSWPCI_SERVICE_FDBCK 0000000000DCRM_             
    Special character "_" in generic key                                                                               
    Key messages: TABU CRM_SVY_DB_ST 300DSWPCI_SERVICE_FDBCK 0000000000DCRM_             
    Special character "_" in generic key                                                 
    Explanation of the error:
    Special character "_" in generic key
    Message no. TK287
    Diagnosis
    The generic key 300DSWPCI_ISSUE_FDBCK 0000000000DCRM_ was entered for the object CRM_SVY_DB_ST. All keys that match up to the asterisk are to be transported.
    The key cannot have any special characters before the asterisk, since they are interpreted in different ways by different database systems.
    The key contains the special character _.
    System Response
    The entry is rejected.
    Procedure
    Extend the generic entry, or specify all keys individually.

    Hi,
    Go through SAP note 711103 & 688363.
    Regards,
    Sachin Rane.
    Edited by: Sachin Rane on Mar 12, 2009 2:48 PM

  • Error  wirh release of the requets Special character "_" in generic key

    Hello
    I am trying to release  the request, this reques was generated to installation the baseline  for Peru  but  I got this message:
    Key messages: TABU TFAWC 200SAPLCATS 2100TCA
    Special character "_" in generic key
    Special character "_" in generic key
    Message no. TK287
    Diagnosis
    The generic key 200SAPLCATS 2100TCA was entered for the object TFAWC. All keys that match up to the asterisk are to be transported.
    The key cannot have any special characters before the asterisk, since they are interpreted in different ways by different database systems.
    The key contains the special character _.
    System Response
    The entry is rejected.
    Procedure
    Extend the generic entry, or specify all keys individually
    Any sugstion for this message?
    thanks
    Danny

    Hi Danny,
    Could you resolve issue Message no. TK078, I'm config SD and when i assign division and dis.channel to sales org those action does not show error but when i check request consistensy in se03 i have below error.
    =====================================================
    Object TDAT OVXA has object function "K", but no key                                                                               
    Message no. TK078                                                                               
    Diagnosis                                                                               
    The request/task cannot be saved because an object entry with function K
        does not have a key.                                                                               
    System Response                                                                               
    The system did not save the entry.                                                                               
    The cursor appears on the incorrect entry in the editor.                                                                               
    Procedure                                                                               
    Press Enter once. This branches to the object list in the editor and    
        positions the cursor on the incorrect object entry.                                                                               
    Correct the object function or enter keys for the object entry.         
    ============================================
    I had follow procedure but it do nothing.
    Anybody can help Pls !
    Thanks and Best regards.

  • Special character issue with Resource Object in OIM 11g

    Hello
    While creating Resource Object with special character '/' in OIM 11g, it's not allowing me.
    For ex: Peoplesoft Finance/Reporting
    Do we have any other workaround without changing the Resource Object name??
    Thanks for your help.

    Nothing is there in system configuration related to special character.

  • How to eliminate the column data which just has a special character

    Hello All,
    I working on a query which will query the table and returns only the meaningful data. In the table, I have the data like this
    ID                SearchWord
    1                   20A-1
    2                   Mainline
    3                   %
    4                   -
    5                   Little Rock, AR
    When I select the data from this table, In the result set, I don't want to see '%'  record, '-' record. If a SearchWord contains the special character along with other alpha numeric characters its fine. But if a record contains only special characters,
    I wanted to eliminate them. How can I achieve this?
    Thanks so much for all your help.

    SELECT *
    FROM Table
    WHERE SearchWord NOT LIKE '%[^0-9A-Za-z]%'
    AND SearchWord LIKE @Yourparameter
    Please Mark This As Answer if it solved your issue
    Please Mark This As Helpful if it helps to solve your issue
    Visakh
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Find the Special character and non Ascii character

    Hi:
    i have table ,this table column name contain some datas like
    sno name
    1 CORPORATIVO ISO, S.A. DE C.V.
    2 (주)엠투소프트
    3 TIMELESS
    4 南京南瑞集团公司
    5 PHOTURIS
    6 Ace Informática S/C ltda
    7 Computacenter AG & Co. oHG
    8 아이티앤씨
    9 MOCA
    10 anbarasan
    my requirement:
    1)i need to search the name column where contain the special character and non ascii character..if found any non ascii or spcial character ..need to say flag ''yes".if not found need to say "no"...kindly help on this issus...

    i need some example..i am not have any idea....
    i have table ,this table column name contain some datas like
    sno name
    1 CORPORATIVO ISO, S.A. DE C.V.
    2 (주)엠투소프트
    3 TIMELESS
    4 南京南瑞集团公司
    5 PHOTURIS
    6 Ace Informática S/C ltda
    7 Computacenter AG & Co. oHG
    8 아이티앤씨
    9 MOCA
    10 anbarasan
    my requirement:
    1)i need to search the name column where contain the special character and non ascii character..if found any non ascii or spcial character ..need to say flag ''yes".if not found need to say "no"...kindly help on this issus...

  • JSP&Special Character

    Hi all,
    I have a problem related to special characters. I have a list with set of parameters. One of the parameter contains an special Character (apostrophe) and I'm using the <bean:write ..... /> to display it and for the validation of the parameter i'm passing the value as an String argument to a function. But due to the special character it was not invoking the javascript function....
    Any body has any answer for this...
    Any further inputs will be highly appreciated....

    there're a couple of possible turnarounds:
    -escape quotes
    - replace spec chars by there &#<char_code>; value
    - delimit your parameters in javascript with double quotes, so the simple quote won't be interpreted(only differs th problem, i agree)

  • Can't create database link when password has special character

    I'm trying to execute the following statement within sqlplus
    create database link alpha connect to scott identified by tiger! using 'db_alpha'
    note that the password for the account has an exclamation point in it. the command fails. I've tried placing the password in quotes (') and double-quotes ("). The double-quotes work, but then the link fails to function properly.
    We are required to have a special character in our passwords... so how do I get that special character into the password for the database link?
    Thanks in advance,
    Darren

    for some weird reason, I can't post the reply I want. every time I try, the forum hangs and doesn't save the message. give me a sec...
    I have put the password within double quotes... so I'm starting to think the problem is something else. I've been reading other posts regarding creating database links and I've obtained limited results. Here's what I've done, and the results I'm getting.
    (names changed to protect the innocent)
    My oracle database is on SYSA. I'm on SYSB. I set my TWO_TASK=SYSA and just use sqlplus to connect as user1.
    I want to run a command on user2's tables. Normally I would just grant read access to user1 on user2's tables and use a command like
    nert spaces to get this to save (weird forum bug here, I can't delete the text to the left)
    SQL> sel{color:black}{color}ect * fr{color:black}{color}om u{color:black}{color}s{color:black}{color}e{color:black}{color}r{color:black}{color}2{color:black}{color}.{color:black}{color}m{color:black}{color}y{color:black}{color}_{color:black}{color}t{color:black}{color}a{color:black}{color}b{color:black}{color}l{color:black}{color}e{color:black}{color};
    However, user2 is for test data and those tables get dropped and recreated often and it is cumbersome to try to remind everyone to recreate the grants. So I can't trust that user1 will have access to user2's tables. So my goal with the database link is to create a private (for user1 only) database link and access the tables that way, that way I bypass the grant issue. This works out better for me because we only change that password every 2 months. I just recreate the database link once every two months, rather than recreate grants multiple times every week. Well, that's the theory anyway.
    Back to creating the database link, I thought my issue was the special character in the password because if I remove the exclamation point everyting works (except that the password is invalid). Below is what it looks like when I do this...
    Attempt #1:
    SQL> create database link BLAH connect to user2 identified by "tiger" using 'BLAH';
    Database link created
    SQL> sel{color:black}{color}ect * fr{color:black}{color}om my{color:black}{color}_{color:black}{color}table{color:black}{color}@{color:black}{color}BLAH;
    sel{color:black}{color}ect * fr{color:black}{color}om my{color:black}{color}_{color:black}{color}ta{color:black}{color}ble{color:black}{color}@{color:black}{color}BLAH
    ERROR at line 1:
    ORA-01017: invalid username/password; logon denied
    ORA-02063: preceding line from BLAH
    So that looks like it's just a password issue. If I put in the correct password... the error changes to this...
    Attempt #2:
    SQL> create database link BLAH connect to user2 identified by "tiger!" using 'BLAH';
    Database link created
    SQL> sel{color:black}{color}ect {color:black}{color}* fr{color:black}{color}om my{color:black}{color}_{color:black}{color}table{color:black}{color}@BLAH;
    sel{color:black}{color}ect * fr{color:black}{color}om my{color:black}{color}_ta{color:black}{color}ble{color:black}{color}@BLAH
    ERROR at line 1:
    ORA-02085: database link BLAH.AAA.BB.CCC.DDD connects to
    DEVDB.AAA.BB.CCC.DDD
    To me, that doesn't make sense. If the link isn't working... how did it get the "invalid username/password" in Attempt #1?
    Anyway, in perusing other forum posts, one post said to put in the full text from the tnsnames.ora file instead of the alias. So I do a little cut/paste and try this...
    Attempt #3:
    SQL> create database link BLAH connect to user2 identified by "tiger!" using
    2 '(DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = server001.aaa.bb.ccc.ddd)(PORT = 9999)))
    3 (CONNECT_DATA = (SERVICE_NAME = devdb)))';
    Database link created.
    SQL> sel{color:black}{color}ect {color:black}{color}* fro{color:black}{color}m my{color:black}{color}_{color:black}{color}tab{color:black}{color}le{color:black}{color}@BLAH;
    sel{color:black}{color}ect {color:black}{color}* fr{color:black}{color}om {color:black}{color}my_{color:black}{color}tab{color:black}{color}le@B{color:black}{color}LAH
    ERROR at line 1:
    ORA-02085: database link BLAH.AAA.BB.CCC.DDD connects to
    DEVDB.AAA.BB.CCC.DDD
    Any ideas on what I'm doing wrong?
    Darren

Maybe you are looking for

  • SMARTFORM ERROR - Part of Text is cutting down after SPACE

    Hi, I have made a simple smartform just for test purpose. I included a simple template in the main window which has 5 mm height and 3 cm width. In the template there is one text element, and 1 included a constant text: LABEL: YYYYYYYY If i see the pr

  • Talk21 - moving to security model of Yahoo

    Hi there, I wonder if anyone can advise on this.  I have an older Talk21 e-mail account which has been transferred to Yahoo.  I've had this for over 10 years. I notice when new customers sign up to Yahoo, there are now more advanced security options

  • ECC 6.0 Upgrade posting issue.

    Hi, Recently we have upgraded to ECC 6.0 from ECC 5.0. After running the payroll in ECC 6, we have a done a simulation in posting. Got an error "Incorrect documents" . i went to the check the error in detail. below mentioned is the error. Balancing f

  • Perchè la finestra per aggiornamento a LR4.2  blocca il programma?

    Da qualche tempo, mentre sto utilizzando LR 4,  si apre in automatico una schermata che mi chiede di fare l'aggiornamento a LR 4.2, con tre opzioni: ignora questi aggiornamenti, ricorda più tardi, scarica. Ebbene non mi è concesso di fare più niente.

  • Best low cost professional-grade camera?

    Hey videographers, I need to upgrade from a consumer to professional camcorder. Can you recommend a reliable camcorder with 2 audio channels, great image stabilization, best picture quality, firewire, battery life and tape features at the professiona