Create and set key TNS_ADMIN?

1. Create a directory to be used for the Oracle Net configuration files, and set
the TNS_ADMIN variable to point to this. It doesn’t matter where the direc-
tory is, as long as the Oracle user has permission to create, read, and write it.
On Linux:
mkdir /u01/oracle/net
export TNS_ADMIN=/u01/oracle/net
Ensure that all work from now is done from a session where the variable has
been set.
On Windows:
mkdir d:\oracle\net
Create and set the key TNS_ADMIN as a string variable in the registry in
the Oracle Home branch. This will typically be
HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\KEY_OraDb1g_home1
OK...in my little window CLI window I did the mkdir. HOW..HOW do I create and set the key TNS_ADMIN as a string variable. I have tried a few ways but I don't think i am doing it correctly. Please help.
Donna

Ed is actually one of the nicer, more helpful people here. Please understand, there are a lot of posts from people who expect volunteers to do their work for them, including students who expect people to do their schoolwork for them. That is highly discouraged. We do want to help, so that often winds up being a pointer to how to find the answer (the "teach a person to fish" idea). Please don't take it personally. There are nasty and rude people here, but they normally pop up reactively, in response to obvious abusers. What is obvious to some people is not to others.
When someone asks for more information, you should give it, they are trying to help, not generally being passive-aggressive. See http://www.catb.org/esr/faqs/smart-questions.html
People are here for all different reasons, and there is a lot of depth to their experience. You have a learning curve ahead, both for how to deal with Oracle and how to do deal with online communities. Patience, dedication and hard work pay off. Most have made the mistakes you are going to make, so consider advice, even apparently rude advice, helpful.
You only have to create one account. You then log on using it again. It actually spreads across many different sites (this is called SSO, Single Sign On).
Edit: By the way, sb gave the correct answer 5 minutes after your first post.
Edited by: jgarry on Oct 30, 2012 10:57 AM

Similar Messages

  • Totorial: Create and set-up Campaign To-Dos

    Hi,
    I'm looking for tutorials, videos or any other form of information on how to create and set-up campaign to-dos.
    I searched in web but did not find anything.
    Please help
    thanks

    Try these as well. Standard video demos by SAP.
    SAP CRM 2007 - Campaign Automation Video demo
    http://www.sdn.sap.com/irj/scn/elearn?rid=/library/uuid/20c7820f-3a99-2b10-67a9-93c5b0c58681
    SAP CRM 7.0 - Marketing End-to-End Part 3: Campaign Design
    http://www.sdn.sap.com/irj/scn/elearn?rid=/library/uuid/e039723d-abc7-2c10-fc89-bc241e2806f2&overridelayout=true
    rgrds,
    Randhir

  • ALDSP 3.0 -- create and return key

    I have a situation where the client needs to be able to generate a key for new records prior to sending to the server. Trust me, the client needs the key before a new record is inserted.
    Is there a way to get the key that DSP would generate using a sequence number for my physical service? That is to say, under normal circumstances I use DSP to generate the key from a sequence and stick it in the new record. In this one situation, the client needs this information in advance, and I want to use the same sequence for it. Ideally I would like to just call a function in DSP to retrieve the key for the physical service. If necessary, I would create a new physical service to retrieve it.
    Thanks!
    Jeff

    Generating globally unique keys is hard work. You need to ensure they are unique between threads, servers - even domains, and over server restarts - it's not as simple as myKey++. So instead of re-inventing an Oracle Sequence, we'll let you create a physical data service that does ... SELECT MYSEQUENCE.nextval from DUAL.
    Also - you have a corner case - where your client needs the unique number before the update takes place. Most applications are happy to have it after - in which case ALDSP will do everything for you if you configure the element to use the autoNumber type=sequence property.

  • Creating and Setting up web services for both inbound and outbound comms

    Hi
    I would like to know the process of setting up inbound and outbound web services using Siebel - is there a tech note /bookshelf article that can guide me through to setting up a 'new/custom' web service.
    I have read up on bookshelf that both business services and workflows can be setup/exposed as web services. Now i would like to find out how to do this.
    Any help appreciated.
    Regards,
    TS

    As you begin to experiment with web services you should take a look at SoapUI. It is a freeware program that makes it a breeze to test both inbound an outbound web service calls. The bonus is that it can also be used to trace what HTTP is going back and forth along with giving you the ability to chain calls together. That is particularly useful for example if you are learning how to do web service calls within the context of a session. http://www.soapui.com/

  • Error creating and setting attributes on Childnode

    I'm trying to get my head around on how to dynamically create childnodes and attributes. I'm trying to create this structure.
    Target Structure
    <root node>
         + Parents (c=1..1, s=true)
         -- mother
         -- father
         -- + Children (c=0..n, s=false)
         ----- name
         ----- age
    I've written the sample code below.
    I get a  com.sap.tc.webdynpro.progmodel.context.ContextException: NodeElement(.TestView.Parents): unknown attribute name
    when I try and execute   child1.setAttributeValue("name", "Madison");
    I suspect my problem is here
    IWDNode childElement = wdContext.getChildNode("Parents.Children",IWDNode.LEAD_SELECTION);
    because it returns null.
    What am I doing wrong
    Thanks for your help.
    /Greg
         // Dynamically create a context node
         IWDNodeInfo parents = wdContext.getNodeInfo().addChild(
                   "Parents",              // Name of node
                   null,                    // elementClass
                   true,                    // singleton
                   true,                  // mandatory                           
                   false,                 // multiple
                   true,                  // mandatorySelection
                   false,                 // multipleSelection
                   true,                  // initializeLeadSelection
                   null,
                   null,
                   null);
         parents.addAttribute("mother", "ddic:com.sap.dictionary.string");
         parents.addAttribute("father", "ddic:com.sap.dictionary.string");
        IWDNodeInfo children = wdContext.getChildNode("Parents",0).getNodeInfo().addChild(
                  "Children",            // Name of node
                   null,                    // elementClass
                   false,                    // singleton
                   true,                  // mandatory                           
                   true,                  // multiple
                   true,                  // mandatorySelection
                   false,                 // multipleSelection
                   true,                  // initializeLeadSelection
                   null,
                   null,
                   null);
         children.addAttribute("name", "ddic:com.sap.dictionary.string");
         children.addAttribute("age", "ddic:com.sap.dictionary.string");
            IWDNode parentElement = wdContext.getChildNode("Parents",0);        
        IWDNodeElement p = parentElement.createElement();
         p.setAttributeValue("mother", "Amy");
         p.setAttributeValue("father", "Greg");
        IWDNode childElement = wdContext.getChildNode("Parents.Children",IWDNode.LEAD_SELECTION);
         IWDNodeElement child1 = parentElement.createElement();
        child1.setAttributeValue("name", "Madison");
         child1.setAttributeValue("age", "2");
         IWDNodeElement child2 = parentElement.createElement();
         child2.setAttributeValue("name", "Peyton");
         child2.setAttributeValue("age", "1");
    Message was edited by:
            Greg Preston

    Hi Greg,
    it must be
    IWDNode parentNode = wdContext.getChildNode("Parents",0);
    IWDNodeElement p = parentNode.createElement();
    p.setAttributeValue("mother", "Amy");
    p.setAttributeValue("father", "Greg");
    parentNode.addElement(p);
    IWDNode childNode = parentNode.getChildNode("Children", IWDNode.LEAD_SELECTION);
    IWDNodeElement child1 = childNode.createElement();
    child1.setAttributeValue("name", "Madison");
    child1.setAttributeValue("age", "2");
    childNode.addElement(child1);
    IWDNodeElement child2 = childNode.createElement();
    child2.setAttributeValue("name", "Peyton");
    child2.setAttributeValue("age", "1");
    childNode.addElement(child2);

  • Overriding the method EntityImpl.create() and setting attribute values?

    Hello,
    I need to set a date to '01/01/2001' if field dateto is left blank when user is inserting a new record.
    How to you do that please ?

    The easiest way would be to set the date as default in the EO. The date then is visible when you create a new row. If the use overwrites it you get the new date, if he leafs hte date untouched you get the default date.
    Timo

  • Creating user account and setting password in Solaris9 through shell script

    I need to create and set password of user through shell scripts.
    User can be added successfully through "useradd" command but password cant be set through "passwd" command in script.
    Is there any other alternative for the same.

    Hi,
    Did you get the answere for this ? I have the same problem as urs , like I want to creat the users by using useradd and want to hardcode there password in one script.
    But I cant use expect utility which would have made my work easier

  • Automatically create a custom VPN connection and set default wallpaper in a deployment...

    Hey guys,
    I've been hard at work on creating a custom deployment for our company to allow us to start rolling out Windows 7 at the first of next month. I demonstrated it to the brass today and they were blown away. All they asked for was two changes and I admit I'm stumped. Hopefully someone here can help:
    1 - Set Default Wallpaper for *all* users: I've written a script to copy our company wallpaper to "C:\Windows\Web\Wallpaper" during a deployment. Is there any way I can modify that script to set that wallpaper as default for anyone who logs into that computer. Or if there's a non-script way to do this I'm all ears. I just need that wallpaper as default.
    2 - Create a VPN Connection for our company intranet: Right now this is being done manually in the Network and Sharing Center. All they are doing is choosing "Set up a new connection or network" >> "Connect to a workplace" >> "Use my Internet Connection (VPN)" and just entering our VPN server IP Address and giving the connection a name. Surely there has to be a way to automate this with a script or something? Can anyone help?
    3 - BONUS: This is just gravy, but if anyone can tell me how to "silently" or "automatically" disable the "Highlight newly installed programs" checkbox for all users using a script or something, that would be *wonderful*.
    Can anyone help me here?

    1. Go here http://blogs.technet.com/deploymentguys/archive/2008/06/06/useful-script-number-5-adjusting-the-default-user-registry-hive.aspx . There is a script that will set your default wallpaper for you.
    2. Does your company use a VPN client?
    3. This option is set in the Registry. You could create a startup script or add this to your Task Sequence. Create the Dword and set it to 0 to disable highlighting.
    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Start_NotifyNewApps
    Rich
    http://deploywindows7.wordpress.com/
    Thanks for responding Rich,
    1. I actually came across that script when I was poking around the Deployment guys forums, but I noticed that it did a lot more than just set the Wallpaper. I was trying to "keep it simple" plus the registry editing sort of made me nervous. I guess I can give it a go and see if it can be made to work for me.
    2. Our company dos not use a VPN client. If you look back at my description of the process in bullet point #2 we are just using the Network and Sharing Center that is built into Windows 7 to create a simple VPN connection. That's why I'm so certain there has to be a way to automate this process. ll we are doing is entering an IP Address and giving the connection a name. Surely I can script that, or is there maybe some way to create the connection on one computer and save it as a file that I can then copy to each machine during my deployment?
    3. Thanks for answering my bonus one too. Please forgive my ignorance because I am new to a lot of this. I assume I can create a "file" with the proper registry settings that can be applied during deployment right? I've seen people crate files that do this and use the .reg extension. Do you know how to make one of these or can you link me to a tutorial that steps me through it?
    You could always edit the script to leave the other parts out.  Thanks for the clarification on the VPN Client, just wanted to make absolutely sure. Let me know how if the process you found works for you.
    For the reg key, you would want to create the key I described, add it to your scripts directory, and then add a Client Build Custom Task in StateRestore to set the key in the registry. You can do this by adding a RunLineCommand to the Task Sequence. Then the command would look like this
    cmd /c regedit /s %deployroot%\scripts\NameOfRegKey.reghttp://deploywindows7.wordpress.com/

  • Help creating apple script to create folder and set access levels

    I'm trying to create folders in FileMaker Pro using apple script and need some help in setting the access level for the folders.  I want to set both Staff and everyone to Read and Write access.   Secondly I would like to have a function key set on the desktop to create new folders and set that same access level.  The default access is Read and I can not find a way to change that.
    Thanks

    I'm trying to create folders in FileMaker Pro using apple script and need some help in setting the access level for the folders.  I want to set both Staff and everyone to Read and Write access.   Secondly I would like to have a function key set on the desktop to create new folders and set that same access level.  The default access is Read and I can not find a way to change that.
    Thanks

  • Firefox and Thunderbird creates CGLog files in /tmp on my Mac. It contains a lot of info related to keyboard and mouse (keys, scrolls, clicks!) I am concerned!

    These files mostly contains following lines:
    Firefox and Thunderbird creates CGLog files in /tmp on my Mac. It contains a lot of info related to keyboard and mouse (keys, scrolls, clicks!) I am concerned!
    --- flushing event log at XXXX.XXXXXXXX ---
    432138.5090574 (Firefox): CGSGetNextEventRecordInternal: XXXX.XXXXXX loc (-XXXX, XXXX) conn 0xXXXXX MouseMoved win 0xXXXX (click 1)
    and the most scaring:
    XXXX.XXXXX (Firefox): CGSGetNextEventRecordInternal: XXXX.XXXXX loc (xxx.xx, xxx.xx) conn 0xXXX KeyDown win 0x0 flags 0xa00100 set 252 char 63233; key 125 data -2303 special 0 repeat 0 keybd 44
    Why it happens? Is it dangerous? How can I turn it off?
    I saw that on the latest Firefox release for Mac and on Firefox ESR 31.2.0 for Mac
    I saw that on Thunderbird release for Mac 31.2.0

    You can start with this;
    '''[https://support.mozilla.org/en-US/forums/support-forum-contributors/710576 Possible Mal-Ware Scan For Macs]''' {web link}

  • I have the latest Creative Cloud versions of Lightroom and Lightroom Mobile on my Ipad. On my desktop I have created a collection which I have put in a custom order. On my Ipad I go into that collection and set the order to custom order, which I presume m

    I have the latest Creative Cloud versions of Lightroom and Lightroom Mobile on my Ipad. On my desktop I have created a collection which I have put in a custom order. On my Ipad I go into that collection and set the order to custom order, which I presume means the order I have on my desktop. However, the photos on the Ipad seem to be just random photos from the collection THEN the rest of the collection is in the correct order after that.

    Do you have virtual copies in your collection?
    Could you please send send me a LR Desktop +Mobile diagnostig log  - best as a private message with a downloadable dropbox link
    You can trigger the Lr Desktop diagnostig log via LR Desktop preferences -> Lightroom Mobile and when you hold down the alt key you will notice a generate diagnostic log button.
    The Lr Mobile app log can be triggered when you open up the settings and long press the to LR Icon a diagnostic log will be generated and attached to your local mail client. While opening the settings could you double check if you are signed-in?
    Thanks
    Guido

  • What is the difference between "create set" and "create dynamic set"?

    What is the difference between  "create set" and "create dynamic set"?
    we have a complete cube ready for production that was tested and working without any issues in non-r2. we found that some "create set" assignments don't work in R2. But when changed to from  "create set" to "create dynamic set"?
    they are working, However, not sure how it will impact other areas of the cube.

    Thanks YuliaKlimov, I can reproduce this issue, but I cannot explain the different behaviors between SSAS 2008 and 2008R2. As a workaround,
    could you try to use dynamic set or create statics set but with fixed member for example:
    CREATE 
    SET CURRENTCUBE.[Prior Month] AS
    [Date].[Date Key].&[20050723].PrevMember
    , DISPLAY_FOLDER = 'Relative Period Sets';
    Personally, I think your set is dynamic set, because the currentmember is changed base on current selection. You can also submit this issue
    on below official link to get confirmation from Product Group:
     https://connect.microsoft.com/SQLServer/
    Thanks,
    Raymond
    Raymond Li - MSFT

  • Create profile and set console font

    Hi,
    I'm not really a powershell expert, even though i use it daily. I've been looking into creating a profile to make life easier. So i made a little script to auto create a profile and set the console properties, load some modules etc.
    The one thing i have not found an answer for is how can i set the console to use Lucinda Console font in stead of that dreadful raster font?
    This posting is provided "AS IS" with no warranties or guarantees and confers no rights

    Hi,
    Thanks. I am aware of the console settings available to powershell, but thanks anyway.
    So the reg settings should be stored for the current user only in the key HKCU\Console. That will only affect the logged on user. It is not dynamic, as you say, but that's ok. I just need to have it set.
    So changing the following settings would change the font for CMD.exe and powershell.exe:
    REG ADD HKCU\Console /v FaceName /d "Lucida Console" /f
    REG ADD HKCU\Console /v FontSize /t REG_DWORD /d 0x000c0000 /f
    REG ADD HKCU\Console /v FontWeight /t REG_DWORD /d 0x00000190 /f
    REG ADD HKCU\Console /v FontFamily /t REG_DWORD /d 0x36 /f
    Push-Location
    Set-Location HKCU:\Console
    New-Item ".\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe"
    Set-Location ".\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe"
    New-ItemProperty . FaceName -type STRING -value "Lucida Console"
    New-ItemProperty . FontFamily -type DWORD -value 0x00000036
    New-ItemProperty . FontSize -type DWORD -value 0x000c0000
    New-ItemProperty . FontWeight -type DWORD -value 0x00000190
    New-ItemProperty . HistoryNoDup -type DWORD -value 0x00000000
    New-ItemProperty . QuickEdit -type DWORD -value 0x00000001
    Pop-Location
    Push-Location
    Set-Location HKCU:\Console
    New-Item '.\%SystemRoot%_SysWOW64_WindowsPowerShell_v1.0_powershell.exe'
    Set-Location '.\%SystemRoot%_SysWOW64_WindowsPowerShell_v1.0_powershell.exe'
    New-ItemProperty . FaceName -type STRING -value "Lucida Console"
    New-ItemProperty . FontFamily -type DWORD -value 0x00000036
    New-ItemProperty . FontSize -type DWORD -value 0x000c0000
    New-ItemProperty . FontWeight -type DWORD -value 0x00000190
    New-ItemProperty . HistoryNoDup -type DWORD -value 0x00000000
    New-ItemProperty . QuickEdit -type DWORD -value 0x00000001
    Pop-Location
    So, that should've done the trick. I can open cmd.exe and powershell.exe, open the system menu, go to defaults, and verify that the settings are in fact set. However, the settings just doesn't take effect. I even opened the properties dialog box for the
    PowerShell shortcut, to check the settings and I can still confirm that it had set the font correctly.
    Still, whenever I launch PowerShell, I am greeted with the ugly raster font. So, the last check I did was to go into properties in the PowerShell window system menu, and check the font.
    It was set to raster. So I changed it. The next time I opened PowerShell, it was back to raster.
    So, no matter where I set it, or what I set, it still goes back to raster every da** time.
    Where i come from, we call this a bug... A very annoying bug...
    Edit: Btw, this is only happening on a handful of servers, not all. On some i am able to successfully script changing the font.
    This posting is provided "AS IS" with no warranties or guarantees and confers no rights

  • What is the diffrence  between "Key to Select" and "Selected Key" while creating Radio  Buttons?

    While creating radio buttons there is a confusion regarding two properties "Key to Select" and "Selected Key".Can anybody explain it with example?
    Thanks,
    Vimal

    Hi Vimal,
    Please find my explanation as below
    Key to Select: This is the unique key for each radio button to identify which one is selected
    Selected Key: This holds the "KEY" of selected radio button
    Example:
       Let us say we have 2 radio buttons : Male & Female
         Create a context attribute SELECTED_KEY of type STRING.
         Create an action ON_SELECT for radio button select event
         Now,
         the properties for "MALE" radio button as below
              KEY_TO_SELECT = 'M'
              SELECTED_KEY = "bind to the context attribute SELECTED_KEY
              OnSelect = 'ON_SELECT'.
         The properties for 'Female" radio button as below
              KEY_TO_SELECT = 'F'
              SELECTED_KEY = "bind to the context attribute SELECTED_KEY
              OnSelect = 'ON_SELECT'.
    If we select radio button 'Male', we get the key as 'M' and for 'Female' radio button 'F'.
    check inside the event handler method ONACTIONON_SELECT, you get the 'KEY' of selected radio button.
    So, the context attribute 'SELECTED_KEY'  gets filled with the key of selected radio button
    Hope this helps you in distinguishing the 'KEY TO SELECT' & 'SELECTED KEY' .
    Regards,
    Rama

  • On Weblogic7, how do I create an InitialContext to a Weblogic6 server and set SECURITY_CREDENTIALS?

    On a Weblogic7 server I am trying to
    create an InitialContext to a Weblogic6
    server and set the SECURITY_CREDENTIALS.
    The code is something like this:
    Hashtable p = new Hashtable();
    p.put(Context.INITIAL_CONTEXT_FACTORY,
    "weblogic.jndi.WLInitialContextFactory");
    p.put(Context.PROVIDER_URL, url);
    p.put(Context.SECURITY_PRINCIPAL, usr);
    p.put(Context.SECURITY_CREDENTIALS, pwd);
    InitialContext ctx = new InitialContext(p);
    But when this code runs, I get a class cast
    exception on class:
    weblogic.security.acl.DefaultUserInfoImpl
    How can I stop this?

    Yes I wrote AspectRatioSelection to take the document orientation into consideration an use the ratio you set orientated to the documents orientation.  So an action to crop Landscape and Portraits for a 4X6 paper would be easy to record. You will notice the dialog has two numbers fields not a Width and Height fields no orientation is implied. Its companion LongSidePrintLength.jsx the let you set the correct print dpi after the aspect ratio crop.
    I did create a plug-in where you could specify an absolute aspect ratio that also had an orient option to work like AspectRatioSelection.  So with that plug-in you would able to crop a landscape to a portrait and portrait to landscape. Hover the image composition changes so much when you do often you can't get an acceptable composition.  The dialog also became hard  to describe well for me.  I program better then I do English.  The orient check box made width and height meaningless and the aspect ratio not absolute and wasn't easly explained. This is what it look like.
    znarkus wrote:
    Thanks for these scripts!
    I noticed an (for me) issue with AspectRatioSelection though: even though I set aspect ratio to 6:4 it decides to crop some images 4:6.
    It works with images that are portrait, but those that are more square are cropped in 4:6.
    I don't follow your more square thing.  If you have two documents one 4x6 and the other 6x4 which is more square?
    The way it works biased on you documents orientation. If your document is wider then tall it landscape if it taller the wide it a Portrait. If It square the plugin defaults it to Landscape.
    So it makes no difference if you set 4 and 6 or 6 and 4 or 3 and 2 or 2 and 3 
    Landscape and square document will see landscape selection with a or 3:2 aspect ratio selection or path the is either rectangle or oval
    Portraits documents will see a Portrait selection with a 2:3 aspect ratio selection or path the is either rectangle or oval
    Message was edited by: JJMack

Maybe you are looking for