What do i put in the quotes $conn = oci_connect('matt', 'password', '');

Ok I am new to this and have never setup a home server or installed oracle.
I have however used oracle extensively and know a lot about it.
I am using php
I have done the following I am using oracle 11g wamp server and I think i have the ori8 working because i am connecting to the database atleast lol. I can pull info and connect.
I have the following.
/ try connecting to the database
$conn = oci_connect('matt', 'password', '');
This following statement is working for me with out specifing where my oracle database is. My question is, what actually goes there? My database name is TPS but where do i find what actaully goes there I tried putting TPS I tried putting locahost/orc or localhost/orcl and many many other things none have worked.
What am i doing wrong? What goes in between those quotes lol. I know eventually when i put my site live I will have to specify what goes there or it could get errors.
Thanks in advance to anyone I am sure this is noob question haha.

You should be able to find a file called TNSNAMES.ora in your $ORACLE_HOME/network/admin folder.
That should give you all the information you need to form a valid connect string.

Similar Messages

  • Edirectory ldap, what do I put in the DN String field?

    Experts,
    I am trying to configure LDAP authentication. I've done this many, many times against Active Directory. In AD it is usually DOMAIN_NAME\%LDAP_USER%.
    This has been driving me nuts today. We are running eDirectory. I have my server's IP address and port.
    What do I put in the DN String field? I've tried many combinations of TREENAME\%LDAP_USER%, nothing seems to work.
    If it is more complicated than that, where do I look in NDS to figure out what I need to put in the DN String field?
    Thanks!
    Dan

    Dan,
    I'm actually surprised you had success with that on AD as I never did. I recommend you get a little lower level and use DBMS_LDAP. Here's a little sample code to get you started:
       FUNCTION ldap_authenticate (
          p_username IN VARCHAR2
        , p_password IN VARCHAR2
          RETURN BOOLEAN
       AS 
          l_dn      VARCHAR2(256) := p_username || '@domain.com';
          l_bind    PLS_INTEGER;
          l_session DBMS_LDAP.SESSION;
       BEGIN
          IF p_username IS NULL
          THEN
             RAISE_APPLICATION_ERROR(-20001,'A username must be supplied');
          END IF;
          IF p_password IS NULL
          THEN
             RAISE_APPLICATION_ERROR(-20002,'A password must be supplied');
          END IF;
          dbms_ldap.use_exception := TRUE;
          l_session := dbms_ldap.init(
             hostname  =>  'server.domain.com'
           , portnum   =>  389
          l_bind := dbms_ldap.simple_bind_s(
             ld      =>  l_session
           , dn      =>  l_dn
           , passwd  =>  p_password
          l_bind := dbms_ldap.unbind_s(l_session);
          RETURN TRUE;
    EXCEPTION
       WHEN OTHERS
       THEN
          RETURN FALSE;
    END;Regards,
    Dan
    http://danielmcghan.us
    http://sourceforge.net/projects/tapigen

  • In accounts  what should I put as the Server Name?  smtp. ?  thanks, Jon

    In accounts  what should I put as the Server Name?  smtp.  ?  thanks,  Jon

    If you are talking about iCloud email you shouldn't need to put anything in. Sign in in System Preferences>iCloud and check 'Mail' in the checklist there and it should set it up automatically.
    If you really want to know the server details they are listed here:
    http://support.apple.com/kb/HT4864

  • I want to host my Muse website on Dreamhost.  When I publish it, what do I put in the "Host Directory" field?

    I want to host my Muse website on Dreamhost.  When I publish it, what do I put in the "Host Directory" field?

    Hi,
    I'm no expert in this but I think you:
    1) first have to buy your domain.
    2) Go to the > manage domain section > under the Web Hosting section Add hosting.
    3) Once this is all done you should be able to access your site with an FTP client.
    4) Once you are in your directory you should see the folder with your domain name.
    5) Drop your published MUSE site into the folder. You should be able to now type your
    URL into a browser and see your site posted online.
    If this isn't clear... I would suggest going onto dreamhost and doing a chat session with them
    they are really patient and helpful!
    Hope this helps a little.
    Steve

  • In a PM, what do I put in the send to field?

    In a PM, what do I put in the send to field?

    Hi
    Send to field is where you should type a username you want to send a message to. For example, if you wanted to PM me, you'd type ATTDmitriyCM in a Send To field, then your subject and message, and send.
    Please let me know if you have any other questions.
    Thanks,
    Dmitriy

  • What do I put in the "Description" when setting up an e-mail on my iPad

    What do I put in the "Descussion" when setting up an e-mail on my iPad?

    Whatever you want. That's up to you. Its for you to identify the account, nothing more.

  • What shall I put in the "device reference in" in the Read.vi?? for my USB-8451, where I found the name to be USB0::0x3923::0x7166::01349C20::RAW??

    as title
    what shall I put in the "device reference in" in the Read.vi?? for my USB-8451, where I found the name to be USB0::0x3923::0x7166::01349C20::RAW??
    i put the whole name in and it keep telling me
    Error -301706 occurred at NI-845x I2C Read.vi
    NI-845x:  The device reference is invalid. Verify that the supplied device reference contains a valid device name.
    Thanks!

    Chihway,
    I apologize for misreading your post the first time around.  Dennis is only half correct in this case.  The USB-8451 is supposed to show up as a USB-RAW device in MAX, but you do not have to run the driver wizard to create an interface to it.  In Measurement and Automation Explorer, select the USB-RAW device under USB Devices and create a VISA alias (I always use 8451) by typing it in the "VISA Alias on My System" box.  You should then be able to use that alias for all communication.  I hope this post helps a little more than the last one!
    Sincerely,
    Chris G in AE

  • What should you put in the registration form

    hi i was wondering what i should put in the company/organization blank of the registration form for the iphone adc if i am doing this personally and i am not part of a company or organization

    You can just use your name again, if you like...change it a bit so you can tell which is being used in the store, as in this example:
    Name: Kevin Kijanka
    Company: K Kijanka
    In any case, it isn't critical for you since you're just an individual.

  • What do i put in the Incoming Mail Server...?

    I have Road Runner and I dont know what to put in the Incoming Mail Server box...any ideas...?

    Contact RoadRunner or check it's help web site for the server addresses. There should be a POP server and an SMTP server for POP mail. For IMAP mail (I don't know if they support this format) there will be an incoming mail and outgoing mail server (the outgoing mail server is usually the same as the SMTP server.)

  • What does ServletAuthentication put in the session?

    Quick question,
    The API documentationo for the ServletAuthentication class states: "It performs
    the authentication call through the Realm and sets the user information into the
    session."
    What exactly does the ServletAuthentication class put into the session when calling
    the weak() method? Does it put something into the session even if FAILED_AUTHENTICATION
    is returned?
    Thanks for your help,
    Scott

    Hi, Dana. There is no way to be sure what SSD Apple might install in an MBP that you order today. It might or might not be the same unit that was in MBPs built a month or two ago, or yesterday. Just as Apple buys its hard drives from several different manufacturers, it may buy SSDs from several manufacturers, or different models from the same manufacturer.
    But if it is the Toshiba SSD, then I'm better off getting an SSD of my own and putting it in myself.
    Only if it works. There have been quite a few reports here of various SSDs installed by users not working properly, and it isn't completely clear whether there's a single reason why they don't, or several different reasons, or whether there are brands/models that always do or always don't work. Until the dust settles and there's a bit more clarity, if you really want a working SSD in your machine, it may be wisest to have Apple install one, regardless of what make and model it turns out to be.
    Message was edited by: eww

  • Radio button to determine what text is put into the body of an email

    Hi all,
    I need some help with a radio button and java scripting. This is the code I'm using on a button with a mouse up event using Java script run at the client
    var oSubmit = this.resolveNode("$..#submit");
    var cToAddr = "[email protected]";
    var cCCAddr = "[email protected]";
    var cSubLine = "Security Access Authorization";
    var cBodya = "Dear Help Desk," + "\n" + "\n" +
    "This email serves as my electronic approval for " + "\n" + "\n"
    var cBodyb = "============ SECURITY ACCESS REQUEST DETAILS ================" + "\n" + "\n"
    var cBodyc = (EffDate.length = "")
      if(EffDate.rawValue)
    cBodyc = "Effective Date - " + EffDate.formattedValue + "\n" + "\n"
    var cBodyd = (RadBut.length == "2")
      if(RadBut.rawValue)
    cBodyd = "Status - Create New User Account" + "\n" + "\n"
    var cBodye = (RadBut.length == "3")
      if(RadBut.rawValue)
    cBodye = "Status - Add/Remove Access" + "\n" + "\n"
    var cBodyf = (RadBut.length == "5")
      if(RadBut.rawValue)
    cBodyf = "Status - Terminate" + "\n" + "\n"
    var cBodyg = (RadBut.length == "1")
      if(RadBut.rawValue)
    cBodyg = "Status - Department Transfer from " + "\n" + "\n" 
    var cBodyh = (RadBut.length == "4")
      if(RadBut.rawValue)
    cBodyh = "Request to have name changed to - " + "\n" + "\n";
    oSubmit.target = "mailto:" + cToAddr + "?cc=" + cCCAddr
    + "&subject=" + cSubLine
    + "&body=" + cBodya + cBodyb + cBodyc + cBodyd + cBodye  + cBodyf  + cBodyg + cBodyh ;
    this is the test layout I'm using
    No matter what I try, it always put all of the choices in the body of the email, not just the one I checked. any help would be greatly appreciated...Thanks Erick

    First off welcome to the group! Livecycle can be an interesting program.
    For me I am not very technically proficient in coding so I tend to gravitate to, how you say, less than elegant solutions. What I do is create an Email Submit button for each Radio button. Then I create a dummy Email Submit button (this part will be key later). From the Object Library view on each Email Submit button I set the Email Address and Email Subject that I want. Then I hide all of the Email Submit buttons with the exception of the dummy Email Submit button. From the Action Builder I then create an action on the dummy Email Submit that when the button is clicked to open a dialog box to say "Please Select an Option". I then create an action within the Action Builder on each Radio button to show the corresponding Email Submit button that has the subject line I need while also making sure to hide the dummy Email Submit button (and any other buttons if the user clicks several radio buttons). That worked for me in the past. Then I added a DocuReady event on the dummy Email Submit button to make sure it was visible and the other buttons were hidden once the form was open. Sort of a reset if you will. The downside is if the user changes nothing they still get a prompt to save the changes. I am sure that some of our more advanced coders can offer a fix to your code lines, but that is sort of the non-coder way to go about this.
    Edit: Oh I forgot to say that if you want the buttons to appear the same to the user, just overlay them together. To the user there is no change.

  • If I use a loop as BG music what do I put on the cue sheet for composer?

    Anyone know this? I am pretty sure it's OK to do tghis, I just need to know how to list the composer since there that is not known.

    Hello,
       Each version of the SSAS product does 3 separate distinct items, which is why they are split. Tabular mode is for you to create and deploy tabular models to, the powerpivot instance is built directly for SharePoint. It's a location for SharePoint
    to store all of those Power Pivot workbooks that are uploaded to the Power Pivot gallery. When someone loads a workbook into the Power Pivot gallery, SP takes the file and puts the data model into this powerpivot instance. This way it can reference that same
    workbook's data model throughout the SP environment.
    The third type is multidimensional, which is what is used to build cubes and data mining structures.

  • What Do I Put On the com.apple.Boot.Plist to Make Snow Boot to the Apple Hardware Test By Default?

    Hi. My main OS is 10.7.2 Lion but I had installed Snow 10.6.8 into a USB external drive. I will use Snow for apps that run well in it and for the Apple Hardware Test which is was my main reason why I installed Snow. Whenever I boot to this iMac's Snow DVD installers (disc 1 or disc 2) or to the one installed on the external USB drive and press D before the gray screen and 'ding', it doesn't want to go to the Apple Hardware Test. I want ot use AHT because I have no budget for similar apps like TechTool Pro.
    Why is pressing the D not working by the way?
    Is there a way to edit the Snow's com.apple.boot.plist to always boot to Apple Hardware Test (AHT)? What should I write in it. I'll be using Smultron to edit the plist instead of Terminal.
    Thank you in advance.
    Gbu.

    Put the AHT disc into the machine, restart, holding down the D key. AFAIK, you can't do the way you're envisioning.

  • What do I put in the boxes for incoming mail server, what do I put in the boxes for incoming mail server

    I am trying to set up my email.  I have an email account from work.  What goes in the "Incoming Mail Server" information boxes?

    It depends on your work's mail server - it would be unique to them. I'd ask someone in your firm's IT department, or someone else from work who has set it up on an iPhone/iPad. If you have another way of getting email at home, you could look in the settings of your email device to find it.

  • I really dont know whats wrong to put in the title

    before i say much, i am using another computer, not the one thats messed up. also, the one thats messed up is a play computer. if it never worked again nothing would be lost, so there no worries about data and files.
    i have mcafee, and have run virus scans, its clean
    first time it messed up happened like this. google chome said something like the profile was outdated or something like that. no biggie, i just redownloaded it again. then it locked up, and couldnt get past the windows logo on start up. finally after reading online, typing in numerous keywords, i managed to reset it to a previous point, before i redownloaded google. it keeps trying to do that thing where it repairs the files on startup.  ive tried to let it do that, but it never finishes and i have to restart. 
    it keeps saying in the bottem corner of the screen saying that the file c is corupt or not working or something like that i cant remeber. 
    if i try to start it in safe mode but it get to a certain file, \windows\system32\DRIVERS\CLASSPNP.SYS just like that.  in any of the 2 safe mode options its always stops at that file.
    when i try to start it in onekey recovery, eaither by letting it reboot or starting it in onkey it comes to the green grass scene and stops there, givein me no options to reset it to factory settings. i know this is wrong because i tried it in the computer i am using now and everything works.
    i read that windows can get damaged, so i bought and downloaded a copy of windows but the bad computer wouldnt read the root file.
    any suggestions on how to reset it to factory settings would be very appreciated! i just dont know enough about it to figure it out on my own,
    also as a side note, i have not changed anything like files or anything, i do know better than that! 
    oh i almost forgot, its a g560

    Well first thing you want to do is backup (copy) all your data to another external HD. This include the email account with contacts for the application you're running.
    If you have not created the factory recovery DVD's then that what you should attempt if it works. The tool is in the Lenvo Tools.
    You cannot rely on one AV scanner. Install and update this if you're able to. http://download.cnet.com/Malwarebytes-Anti-Malware/3000-8022_4-10804572.html?part=dl-10804572&subj=d...
    Run in Safe mode. I could be your HD is dying and the Lenovo diagnostic can determine that.
    You have not specified the model and configuration of the notebook etc. If you atempt an install from a generic windows DVD you will blow away the ability to recover or generate the DVD's
    T520 Model 4239 Intel(R) Core(TM) i7-2860QM CPU @ 2.50GHz
    Intel Sandy Bridge & Nvidia NVS 4200M graphics Intel N 6300 Wi-Fi adapter
    Windows 7 Home Prem - 64bit w/8GB DDR3

Maybe you are looking for

  • Not able to access some websites

    I have not been able to access a few websites on my Macbook. I initially thought that it was my wireless router (D-Link DIR 655) and connected my Macbook to the cable modem but still I couldn't access the website. So I figured it must be my ISP. But

  • FM for deleting Component from Ibase Hierarchy

    Hi, Is there any FM for deleting Component from Ibase Hierarchy. I have tried using the FM "CRM_IBASE_COMP_DELETE", it is anyway deleting the component from the hierarchy but not those component whose is already assigned to a Contract. I have read th

  • Get Computer name and move

    Hi all , i need help with small problem , i tried to create new script that know get all computer names that start with " ISR..." And then move them to another ou , i have 2 convention name on my organization name  , 1 - ISR , 2 -TLV  .  some compute

  • How do I call Vee functions from TestStand ?

    I wish to call Vee functions from TestStand steps. I am using Vee 6.01 and TestStand 2.0.

  • Opening a stream in the browser

    So I changed a setting/preference somewhere so that a stream woudl open in a seperate Quicktime window. Now that I'm done watching this stream I'd like to reset the setting/preference; I'd like streams to open in the page/window of the browser. How d