[질문] unix 에서 php와 oracle 10g 를 연동하고 있는데요 한글데이터가 ? 로 나와요

os : unix AIX 5
db : oracle 10g
웹 : apache, php
이렇게 구성되어 있는데
oracle, php 설치를 했는데요
웹은 뜨는데
쿼리를 해서 한글 데이터를 조회하면 한글이 ?(물음표)로 조회가 됩니다.
sqlplus 로 접속해서 보면 한글로 제대로 나오는데 php로 웹상에 보여질때는 한글이 물음표(?)로 나오는데 어떻게 해야 하나요?
인터넷 검색해서 보면 euc-kr 이런 한글 옵션이나 nls 이런 옵션을 맞추면 된다고 하는데 이것저것 해봤는데 안되서 이렇게 글을 올립니다. 오라클 설치시 옵션을 잘못 줘서 그런거지 아니면 php를 설치를 잘못 한건지 정말 모르겠습니다. 고수님들 많은 조언 바랍니다.

charater set을 확인해 보세요 5601 또는 949,,,,
949가 디폴트로 알고 있네요 기억이잘;;
글 수정:
user612568

Similar Messages

  • Oracle Streams:  Oracle 10g in Unix to Oracle 10g in Windows 2003

    Hello,
    At our company, we wish to migrate one of our Oracle 10g databases from Windows 2003 to Unix environment. With this new Oracle database in Unix, we would like to connect it via Linked Streams to another Oracle 10g database in a Windows 2003 environment.
    My question is: Is this possible? If so, what middleware/other components would we need to set this up?
    Thanks!
    Edited by: user3031139 on Sep 16, 2008 7:18 AM

    You can use any of the samples in the official Oracle docs:
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14229/pt_demos.htm#sthref1277
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14228/ptrep_demos.htm#BEIDDCBI
    There is simply nothing special that has to be done for the different OS.

  • Free web hosting for PHP Oracle 10g XE applications

    Hi guys
    I am a student currently completing my final year project of a BSc Information Systems / Computer Science programme. I am using PHP and Oracle 10g XE and I was hoping that someone could advise me on a good web hosting site for student applications that is available at no cost, since I can't afford to pay for hosting. It is important that I host my site because my university tutor (in the UK) needs to access my site and provide feedback at this point in the project. Any assistance will be very much appreciated.

    Just to let everyone know, i will do free hosting for students needing it for there projects, i will need an academic email address for corespodence, so thats a .edu or .ac.uk for example.
    I have just relaunched the website and slashed my prices, so starter packages are from 2.99 a month for oracle and php. www.phporaclehosting.com
    Any questions reply to this thread

  • Problem with javascript/PHP/ oracle 10g smart quotes

    I have a problem with my php form that passes the text field to a javascript object. When I copy text from MS Word that includes smart quotes, the form inputs that into the database as ? (upside down) marks. The charset of the DB is WE8MSWIN1252. How do I store these smart quotes as regular quotes? And also if I can do any conversions on the front end (js or php). I tried doing some conversion but to no avail. Any help would be appreciated thank you. “double”

    Decide if you want your HTML pages in Windows code page 1252 or Unicode UTF-8. Then, make sure the pages are properly tagged as either "text/html;charset=windows-1252" or "text/html;charset=utf-8". Use HTTP header Content-type or the corresponding <META HTTP-EQUIV=...> tag. Then, set NLS_LANG environment variable for your PHP engine to either AMERICAN_AMERICA.WE8MSWIN1252 or to AMERICAN_AMERICA.AL32UTF8, depending on which encoding you selected for your HTML.
    -- Sergiusz

  • Oracle 10g migration to linux

    Hi,
    At present we are maintaining a J2EE application running on a UNIX Platform with the following environment configuration:
    o Web Server (Apache 2.0.52)
    o Application Server (WebLogic Server 9.0)
    o Database Server (Oracle 9i)
    The current requirement is to upgrade Oracle 9i on UNIX to Oracle 10g on Linux. Will there be any impact on
    · Oracle developer applications (Forms/Reports) because of oracle upgrade?
    · .net applications accessing oracle because of oracle upgrade?
    · Java applications accessing oracle because of oracle upgrade?
    And there are plans to use Oracle Warehouse Builder and Oracle Workflow Server. Are there any known issues with respect to the above applications during this migration?
    Thanks,

    Hi,
    Upgrading on the same machine doesn't work well. Installing in a different machine
    will work fine.
    This can be done for apps also where you will be migrating the config alone.
    Regards,
    Nirmal

  • Upgrade Oracle 9i on Solaris to Oracle 10g (Oracle 10.2.0.1) Red Hat Linux

    At present we are maintaining a J2EE application running on a UNIX Platform with the following environment configuration:
    o Web Server (Apache 2.0.52)
    o Application Server (WebLogic Server 9.0)
    o Database Server (Oracle 9i RAC)
    The current requirement is to upgrade Oracle 9i on UNIX to Oracle 10g (Oracle 10.2.0.1) on Linux. Will there be any impact on
    -> Oracle developer applications (Forms/Reports) because of oracle upgrade?
    -> .net applications accessing oracle because of oracle upgrade?
    -> Java applications accessing oracle because of oracle upgrade?
    -> compatibility issues resulting from the differences in the Oracle database versions
    Any pointers on this will be really helpful.

    Download patch set from metalink and extract patch into some directory.
    Then from that directory run "Opatch install". ( You need to shutdown all database and other service while upgrading code tree)
    Cheer,
    Virag Sharma
    http://virag.sharma.googlepages.com/
    http://viragsharma.blogspot.com/

  • Help Oracle 10g+PHP and Bengali language support !!!!

    Hi All:
    i have a emp having a column names namewhich is of nvarchar2 datatype. What I want is to insert a value from a html from which will insert Bengali language as my input to the name filed in my database and show me the same on the browser when required.
    Here am attaching a sample code which am using to connect/insert and show my table. This is working perfectly fine.
    Please help me as am unable to insert data in local language. Please guide me the steps how to configure the NLS_LANG and how to do it.
    ht.html
    =====
    <form action="insert.php" method="post">
    <p> Your ID : <input type="number" name="id" /></p>
    <p> Your NAME: <input type="text" name="name" /></p>
    <p><input type="submit" /></p>
    insert.php
    =======
    <?php
    # if ($REQUEST_METHOD=="POST")
    // Before running, create the table:
    // CREATE TABLE MYTABLE (mid NUMBER, myd VARCHAR2(20));
    $dbuser = "bob";
    $dbpass = "bob";
    #$dbtsn = "orcl"
    $dbconn = oci_connect($dbuser, $dbpass);
    echo "The Oracle Database established";
    $query = "INSERT INTO demo
         (id,name)
    VALUES('".$_POST['id']."','".$_POST['name']."')";
    $resultSet = oci_parse($dbconn,$query);
    if (oci_execute($resultSet))
    echo ("<BR> Record inserted");
    else
    echo ("<BR> error!!!!!!");
    ?>
    showv.php
    ========
    <?php
    $conn = oci_connect('bob', 'bob', 'orcl');
    if (!$conn) {
    $e = oci_error();
    print htmlentities($e['message']);
    exit;
    $query = 'SELECT * FROM demo';
    $stid = oci_parse($conn, $query);
    if (!$stid) {
    $e = oci_error($conn);
    print htmlentities($e['message']);
    exit;
    $r = oci_execute($stid, OCI_DEFAULT);
    if (!$r) {
    $e = oci_error($stid);
    echo htmlentities($e['message']);
    exit;
    print '<table border="2">';
    while ($row = oci_fetch_array($stid, OCI_RETURN_NULLS)) {
    print '<tr>';
    foreach ($row as $item) {
    print '<td>'.($item?htmlentities($item):' ').'</td>';
    print '</tr>';
    print '</table>';
    oci_close($conn);
    ?>
    I am using RedHat Enterprise linux 4 update 1 and Oracle 10g.
    Regards,
    Pradyumna

    Right... I found out how you can solve this, well not through the web interface... but oh well it is possible though...
    the error I was getting was: ORA-01704:     string literal too long.
    the keyword/phrase is "bind variables"... Did a little more searching and found this site:
    http://www.akadia.com/services/ora_bind_variables.html
    So basically you use bind variables to insert data which fills more than 4000 bytes...
    Since the data I will be inserting will be inserted via Java/.NET application I found the section called "Bind Variables in VB, Java and other applications" the most interesting... During my testing and I had neglected to use PreparedStatements in Java, and according to the site, using PreparedStatement provided an easier solution as the API does most of the work for you. My solution was to create a small program which read the large amounts of data from a file then feed this to a PreparedStatement, setObject or setASCIIStream/setCharacterStream, then execute it.
    Well I hope this helps other people who get the same error code.

  • PHP 5.2.4 with Oracle 10g.

    OS: Windows Vista
    PHP: 5.2.4
    Oracle: 10g (XE)
    Apache 2.2
    Hey all,
    hoping for a bit of help if possible! I'm unsure if this is the right place for this question. But here goes anyway!
    I installed PHP 5.2.4, Apache 2.2 and Oracle XE 10g today. I've set it up, and PHP is working fine on my server. However i'm having a bit of trouble with Oracle. I've pointed php.ini to the correct ext directory, and i've 'uncommented' the line "extension = php_oci8.dll".
    However when I go to connect to the database, I get the error "Call to undefined function: ora_logon()/ ocilogon()" I checked phpinfo, and the module has not been activated (which explains the error.)
    So I did a bit of research, and I read that I need uncomment the line ";extension = php_oracle.dll" in php.ini. However this line does not exist and nor did the 'php_oracle.dll' file.
    So I found the file in the binary .zip for PHP 5.2.4, put it in the 'ext' directory, and added the line to php.ini. But this did not help either.
    I'm at a bit of a loss how to do this?
    Any help would be much appreciated.
    Message was edited by:
    user600685

    The only thing I can see is this, which keeps repeating:
    [Thu Oct 18 12:34:55 2007] [notice] Apache/2.2.3 (Win32) PHP/5.2.4 configured -- resuming normal operations
    [Thu Oct 18 12:34:55 2007] [notice] Server built: Jul 27 2006 16:49:49
    [Thu Oct 18 12:34:55 2007] [notice] Parent: Created child process 880
    [Thu Oct 18 12:34:56 2007] [notice] Child 880: Child process is running
    [Thu Oct 18 12:34:56 2007] [notice] Child 880: Acquired the start mutex.
    [Thu Oct 18 12:34:56 2007] [notice] Child 880: Starting 250 worker threads.
    [Thu Oct 18 12:34:56 2007] [notice] Child 880: Starting thread to listen on port 80.

  • PHP 5 + Oracle 10g

    I am trying to work with PHP 5 and Apache 1.3.29 on Windows XP with the Oracle 10g client libraries.
    I have tried v5.0.0, 5.0.1 and 5.0.2-dev as of today's CVS build with no luck.
    Apache keeps hanging with an error caused probably by the oci8 extension of PHP 5.
    I tried to find out the error and the crash happens in oraclent10.dll, so I'm pretty sure this has to do with the Oracle support.
    Has anybody experienced anything like that?
    With PHP 4 everything works perfectly with the same version of Apache and the same Oracle 10g client libraries.
    Valerio Santinelli

    OCI8 functions are not compiled by default in PHP.
    So if PHP was installed from sources then you need recompile it with with-oci8 or with-oci8-instant-client option.

  • Problem with do click on a field - Oracle 10g form - UNIX

    Hello, friends.
    I nedd a help. I have a problem with a Oracle 10g form when it was executed in UNIX environment.
    The problem is that when I do click with the mouse in a different field, doesn't lead me to the other field. That is, don't let me to do click on a different field than the initial field of the form. Just work with TAB or ENTER.
    Would you tell me what I can check?
    Thanks.
    Kisses.
    Annie

    Hello
    Another question about the problem that I posted yesterday:
    Why the system.cursor_item isn't change when I do click in other field? Just the system.mouse_item changes. This problem occurss in Oracle 10g at UNIX environment (don't occurss in Windows environment).
    Thanks.
    Kisses.
    Annie

  • Oracle 10G in HP Unix

    Hi,
    I am going to install Oracle 10G on Hp Unix. Is any one have any document about installation of Oracle 10g in HP Unix other than Oracle Documentation?
    Thanks in advance.
    Jayanta

    Is any one have any document about installation of Oracle 10g in HP Unix other than Oracle Documentation?Anything wrong with Oracle documentation?

  • Connecting PHP 5.0.3 to Oracle 10g

    I have read dozens of documents and postings, but I cannot identify why my PHP scripts fail to connect to my db.
    When I run:
    $connection = OCI_Connect('db_user_name', 'pw', 'db');
    I consistently get:
    Warning: oci_connect() [function.oci-connect]: ociopen_server:
    I have: Oracle 10g, PHP 5.0.3, MS IIS 5.0
    1. phpinfo() executes without any errors.
    2. phpinfo() reports: the correct location of my php.ini, the correct location of my extensions, and the correct values of my enviroment variables (ORACLE_HOME and ORACLE_SID.)
    3. I have un-commented php_oci8.dll in php.ini (phpinfo reports it as enabled.)
    4. I have installed the Oracle 10g client on the web server and can connect to the db from the web server using SQLPlus.
    5. I have given IUSR_<machine name> on my web server "Full Control" priviledges in both the Oracle client directory and the PHP directory.
    I must still be missing something though.... Does anyone know what?
    Thanks for your help - Chris

    I had similar problem…
    From dos
    set path=%PATH%;”path to php”;’path to php\ext”
    D:\ My Documents>more tst.php
    <?php
    $user="SCOTT";
    $password="tiger";
    $dbname="test";
    $connection = ocilogon($user, $password, $dbname);
    $query = "SELECT EMPNO,ENAME,JOB FROM emp";
    $statement = oci_parse ($connection, $query);
    oci_execute ($statement);
    while ($row = oci_fetch_array ($statement, OCI_ASSOC)) {
    $id = $row['EMPNO'];
    $name = $row['ENAME'];
    $lob_field = $row['JOB'];
    echo $id.' '.$name.' '.$lob_field,"\n";
    oci_free_statement($statement);
    oci_close($connection);
    ?>
    D: \My Documents>php tst.php
    7369 SMITH CLERK
    7499 ALLEN SALESMAN
    7521 WARD SALESMAN
    7566 JONES MANAGER
    D:\My Documents>
    Now it should work
    Robert

  • PHP 5.1.4 and Oracle 10G XE ?

    I am using PHP 5.1.4 with OCI8.dll module, and Oracle 10G XE. My question is how to Edit and Delete Record in my table using PHP syntax ?.
    Best Regards,
    /Harso Adjie.

    You use SQL syntax not PHP syntax to UPDATE / DELETE the records and run the query in a similar manner to SELECT statements:
    Parse your Oracle statement: oci_parse()
    Execute your Oracle statement: oci_execute()
    (You will need to commit transaction if not using auto-commit) Commit your transaction: oci_commit()
    http://uk.php.net/manual/en/ref.oci8.php

  • Enter prise Manager Oracle 10g Rel 2 ON HP-Unix - Errors

    Hi all
    I am using Oracle 10g Release 1002000100 on HP-Unix,
    When i am trying to login the Enterprise manager it is Throwing the ERROR
    java.lang.Exception: UnknownHostException sending request :: testdisc And Enter prise manager page is being Opened
    But
    when i am clicking the Performance or Administration tabs it is comming to Login page with the Follows Error message
    Io exception: The Network Adapter could not establish the connection
    cud u any one advise about this Problem
    many thanks
    - Khaja

    Check the metalink note, *273758.1* for the same.
    HTH
    Aman....

  • Can I call host file ( Unix Shell script ) from Oracle 10g trigger

    Hi,
    I am new to Oracle 10g. Can I call host file ( unix shell script ) from Oracle 10g trigger ?. I know it is possible. Pl explain me with small example
    thanks & regards
    parag

    user12009546 wrote:
    Hi,
    I am new to Oracle 10g. Can I call host file ( unix shell script ) from Oracle 10g trigger ?. I know it is possible. Pl explain me with small example
    thanks & regards
    paragIf you are in 10g, you can simple call shell script from DBMS_SCHEDULER:
    BEGIN
    DBMS_SCHEDULER.CREATE_JOB (
    job_name => 'TEST_SCRIPT',
    job_type => 'EXECUTABLE',
    job_action => 'PATH_OF_YOUR_SCRIPT',
    start_date => SYSDATE,
    repeat_interval => 'FREQ=MINUTELY; INTERVAL=1',
    enabled => TRUE,
    comments => 'Shell script from Oracle'
    END;
    /

Maybe you are looking for