ora-01858

oci_bind_by_name and to_date PHP/OCI/Oracle

不打扰是莪最后的温柔 提交于 2019-12-18 07:50:30
问题 I have the following: $ARTIFACT_NAME = $_POST['ArtifactName']; $ARTIFACT_TYPE = $_POST['ArtifactType']; $ARTIFACT_LOCATION = $_POST['ArtifactLocation']; $ARTIFACT_DOMAIN = $_POST['ArtifactDomain']; $ARTIFACT_AUTHOR = $_POST['ArtifactAuthor']; $ARTIFACT_LABEL = 'DB_'.$ARTIFACT_LOCATION.'_'.$ARTIFACT_DOMAIN.'_'.$ARTIFACT_NAME; $AUDIT_CONSTRAINTS = $_POST['AuditConstraints']; $SECURITY_CONSTRAINTS = $_POST['SecurityConstraints']; $REGISTERED_EMAIL = $_SERVER['HTTP_REMOTE_USER']; $REGISTERED

arabic characters in oracle database

送分小仙女□ 提交于 2019-12-02 05:50:02
问题 Dear all, I am trying to do the following. I want to store Arabic characters in my database but the problem they are stored like that '??? ????'. I have tried with these function: msg_txt:=convert(msg_txt, 'AR8MSWIN1256', 'AR8ISO8859P6'); but I got this error: ORA-01858: a non-numeric character was found where a numeric was expected any suggestion please? thanks 回答1: What is your database and national character set? If you're not sure SELECT * FROM v$nls_parameter WHERE name LIKE '

arabic characters in oracle database

痞子三分冷 提交于 2019-12-02 00:27:33
Dear all, I am trying to do the following. I want to store Arabic characters in my database but the problem they are stored like that '??? ????'. I have tried with these function: msg_txt:=convert(msg_txt, 'AR8MSWIN1256', 'AR8ISO8859P6'); but I got this error: ORA-01858: a non-numeric character was found where a numeric was expected any suggestion please? thanks What is your database and national character set? If you're not sure SELECT * FROM v$nls_parameter WHERE name LIKE '%CHARACTERSET' What is the data type of the msg_txt variable? CHAR/ VARCHAR2? Or NCHAR/ NVARCHAR2? make sure the data

oci_bind_by_name and to_date PHP/OCI/Oracle

梦想与她 提交于 2019-11-29 13:42:37
I have the following: $ARTIFACT_NAME = $_POST['ArtifactName']; $ARTIFACT_TYPE = $_POST['ArtifactType']; $ARTIFACT_LOCATION = $_POST['ArtifactLocation']; $ARTIFACT_DOMAIN = $_POST['ArtifactDomain']; $ARTIFACT_AUTHOR = $_POST['ArtifactAuthor']; $ARTIFACT_LABEL = 'DB_'.$ARTIFACT_LOCATION.'_'.$ARTIFACT_DOMAIN.'_'.$ARTIFACT_NAME; $AUDIT_CONSTRAINTS = $_POST['AuditConstraints']; $SECURITY_CONSTRAINTS = $_POST['SecurityConstraints']; $REGISTERED_EMAIL = $_SERVER['HTTP_REMOTE_USER']; $REGISTERED_TIMESTAMP = "to_date('15-08-2011 14:32:37', 'DD-MM-YYYY HH24:MI:SS')"; $query = "INSERT INTO ".$db_schema."