Installing Apex - Error

Oracle Application Express - web application development tool (antigamente conhecido como Oracle HTML-DB)
Post Reply
crispix.paulo
Rank: Programador Júnior
Rank: Programador Júnior
Posts: 17
Joined: Fri, 05 Aug 2011 12:18 pm
Location: São Paulo - SP

Good afternoon.

I am installing Apex 3.2 in Oracle 10.2.0 and I can not access the page.


I perform the following procedures:

Access SQLPlus by DOS, connect with a SYSDBA user and perform the following scripts:

Select all

@apexins SYSAUX SYSAUX TEMP /i/
Connect again and run the second script:

Select all

@apxldimg.sql c:\oracle
(Because it is not the XE version)

I change the password by turning the following Script:

Select all

@apxxepwd.sql <password> 
In DOS vou to the following directory:

Select all

CD C:\oracle\apex\builder\pt-br 
SETO NLS_LANG:

Select all

set NLS_LANG=American_America.AL32UTF8 

Connect to SQL and change the session:

Select all

ALTER SESSION SET CURRENT_SCHEMA = APEX_030200; 
Next Script:

Select all

@load_pt-br.sql 
When you finish the script I will try to access the localhost / Apex to enter the workspace.

Select all

http://127.0.0.1:8080/apex 
I can not access, returns a page stating that the page can not be displayed.
Is anyone going through this? Does anyone have any other solution? Am I performing the procedures in the right way?
Thanks everyone.

Hugs.
diegolenhardt
Moderador
Moderador
Posts: 1177
Joined: Thu, 15 Oct 2009 10:28 am
Location: Recife

Is the door that same?

of a netstat and see which is
crispix.paulo
Rank: Programador Júnior
Rank: Programador Júnior
Posts: 17
Joined: Fri, 05 Aug 2011 12:18 pm
Location: São Paulo - SP

So .. I gave NetStat and returned the following.

Doubts I tried with all the doors they returned, I had no success.

Select all

C:\oracle\apex\builder\pt-br>netstat 
 
Conexões ativas 
 
  Proto  Endereço local         Endereço externo       Estado 
  TCP    moodle:1470            localhost:3389         ESTABLISHED 
  TCP    moodle:1521            localhost:1505         TIME_WAIT 
  TCP    moodle:1521            localhost:4275         ESTABLISHED 
  TCP    moodle:1521            localhost:4279         ESTABLISHED 
  TCP    moodle:1521            localhost:4336         ESTABLISHED 
  TCP    moodle:1521            localhost:4577         ESTABLISHED 
  TCP    moodle:3389            localhost:1470         ESTABLISHED 
  TCP    moodle:4275            localhost:1521         ESTABLISHED 
  TCP    moodle:4279            localhost:1521         ESTABLISHED 
  TCP    moodle:4336            localhost:1521         ESTABLISHED 
  TCP    moodle:4577            localhost:1521         ESTABLISHED 
  TCP    moodle:1507            169.254.232.70:5500    TIME_WAIT 
  TCP    moodle:1510            169.254.232.70:1521    TIME_WAIT 
  TCP    moodle:1511            169.254.232.70:1521    TIME_WAIT 
  TCP    moodle:1514            169.254.232.70:1521    TIME_WAIT 
  TCP    moodle:1515            169.254.232.70:5500    TIME_WAIT 
  TCP    moodle:1518            169.254.232.70:5500    TIME_WAIT 
  TCP    moodle:1521            169.254.232.70:4623    ESTABLISHED 
  TCP    moodle:1521            169.254.232.70:4624    ESTABLISHED 
  TCP    moodle:1521            169.254.232.70:4625    ESTABLISHED 
  TCP    moodle:1830            169.254.232.70:1508    TIME_WAIT 
  TCP    moodle:1830            169.254.232.70:1516    TIME_WAIT 
  TCP    moodle:1830            169.254.232.70:1519    TIME_WAIT 
  TCP    moodle:4623            169.254.232.70:1521    ESTABLISHED 
  TCP    moodle:4624            169.254.232.70:1521    ESTABLISHED 
  TCP    moodle:4625            169.254.232.70:1521    ESTABLISHED

Hugs
diegolenhardt
Moderador
Moderador
Posts: 1177
Joined: Thu, 15 Oct 2009 10:28 am
Location: Recife

Try:

Select all

netstat -a
To see the open, waiting for connection, if the 8080 does not appear there, it is a sign that has something wrong ...
crispix.paulo
Rank: Programador Júnior
Rank: Programador Júnior
Posts: 17
Joined: Fri, 05 Aug 2011 12:18 pm
Location: São Paulo - SP

Dude to 8080 did not return.

I did differently, I remembered that I have the Tomcat service in the air. I downloaded the service and read again.
I'm running again here and in 10 minutes I already sent you an answer if it worked.
crispix.paulo
Rank: Programador Júnior
Rank: Programador Júnior
Posts: 17
Joined: Fri, 05 Aug 2011 12:18 pm
Location: São Paulo - SP

Diego ..
Executed procedures again with the Tomcat Stop service

I could not.

My return was:

Select all

C:\>netstat -a 
 
Conexões ativas 
 
  Proto  Endereço local         Endereço externo       Estado 
  TCP    moodle:http            0.0.0.0:0              LISTENING 
  TCP    moodle:epmap           0.0.0.0:0              LISTENING 
  TCP    moodle:microsoft-ds    0.0.0.0:0              LISTENING 
  TCP    moodle:1060            0.0.0.0:0              LISTENING 
  TCP    moodle:1521            0.0.0.0:0              LISTENING 
  TCP    moodle:1830            0.0.0.0:0              LISTENING 
  TCP    moodle:3389            0.0.0.0:0              LISTENING 
  TCP    moodle:5500            0.0.0.0:0              LISTENING 
  TCP    moodle:5521            0.0.0.0:0              LISTENING 
  TCP    moodle:5560            0.0.0.0:0              LISTENING 
  TCP    moodle:5580            0.0.0.0:0              LISTENING 
  TCP    moodle:1026            0.0.0.0:0              LISTENING 
  TCP    moodle:1070            0.0.0.0:0              LISTENING 
  TCP    moodle:1470            localhost:3389         ESTABLISHED 
  TCP    moodle:1521            localhost:1760         ESTABLISHED 
  TCP    moodle:1521            localhost:1761         ESTABLISHED 
  TCP    moodle:1521            localhost:4275         ESTABLISHED 
  TCP    moodle:1521            localhost:4279         ESTABLISHED 
  TCP    moodle:1521            localhost:4336         ESTABLISHED 
  TCP    moodle:1521            localhost:4577         ESTABLISHED 
  TCP    moodle:1758            localhost:5500         TIME_WAIT 
  TCP    moodle:1760            localhost:1521         ESTABLISHED 
  TCP    moodle:1761            localhost:1521         ESTABLISHED 
  TCP    moodle:1830            localhost:1759         TIME_WAIT 
  TCP    moodle:3389            localhost:1470         ESTABLISHED 
  TCP    moodle:4275            localhost:1521         ESTABLISHED 
  TCP    moodle:4279            localhost:1521         ESTABLISHED 
  TCP    moodle:4336            localhost:1521         ESTABLISHED 
  TCP    moodle:4577            localhost:1521         ESTABLISHED 
  TCP    moodle:1521            169.254.232.70:1747    TIME_WAIT 
  TCP    moodle:1740            169.254.232.70:5500    TIME_WAIT 
  TCP    moodle:1743            169.254.232.70:1521    TIME_WAIT 
  TCP    moodle:1744            169.254.232.70:1521    TIME_WAIT 
  TCP    moodle:1745            169.254.232.70:5500    TIME_WAIT 
  TCP    moodle:1748            169.254.232.70:5500    TIME_WAIT 
  TCP    moodle:1830            169.254.232.70:1741    TIME_WAIT 
  TCP    moodle:1830            169.254.232.70:1746    TIME_WAIT 
  TCP    moodle:1830            169.254.232.70:1749    TIME_WAIT 
  UDP    moodle:microsoft-ds    *:* 
  UDP    moodle:isakmp          *:* 
  UDP    moodle:1025            *:* 
  UDP    moodle:4500            *:* 
  UDP    moodle:ntp             *:* 
  UDP    moodle:1175            *:* 
  UDP    moodle:1755            *:* 
  UDP    moodle:1900            *:* 
  UDP    moodle:3852            *:*
Any suggestion?

Thanks
diegolenhardt
Moderador
Moderador
Posts: 1177
Joined: Thu, 15 Oct 2009 10:28 am
Location: Recife

You have to see those with listening:

Select all

TCP moodle:http 0.0.0.0:0 LISTENING 
TCP moodle:epmap 0.0.0.0:0 LISTENING 
TCP moodle:microsoft-ds 0.0.0.0:0 LISTENING 
TCP moodle:1060 0.0.0.0:0 LISTENING 
TCP moodle:1521 0.0.0.0:0 LISTENING 
TCP moodle:1830 0.0.0.0:0 LISTENING 
TCP moodle:3389 0.0.0.0:0 LISTENING 
TCP moodle:5500 0.0.0.0:0 LISTENING 
TCP moodle:5521 0.0.0.0:0 LISTENING 
TCP moodle:5560 0.0.0.0:0 LISTENING 
TCP moodle:5580 0.0.0.0:0 LISTENING 
TCP moodle:1026 0.0.0.0:0 LISTENING 
TCP moodle:1070 0.0.0.0:0 LISTENING 
Apparently there is something at port 80 there, have you tried?

And the service status, is running?
User avatar
stcoutinho
Moderador
Moderador
Posts: 850
Joined: Wed, 11 May 2011 5:15 pm
Location: são Paulo - SP

Sorry,

But maybe you're not using the correct URL in this case.

Try
http://127.0.0.1:8080/apex/apex Development environment)

or
http://127.0.0.1:8080/apex/apex_admin Apex administrator) .

One thing more: Why do you want to install APEX version 3.2.1? The current version is Apex 4.0.2.

I recommend that you use this, as you have enough improvements regarding the previous version.

Hugs,

Sergio
User avatar
stcoutinho
Moderador
Moderador
Posts: 850
Joined: Wed, 11 May 2011 5:15 pm
Location: são Paulo - SP

Hello,

If the links do not work, try to see if you can activate the PL / SQL Gateway Debug:

to activate:

Select all

sqlplus system/<password> 
SQL> exec dbms_epg.set_dad_attribute('APEX', 'error-style', 'DebugStyle')
Remember to disable after you do not need it anymore:

Select all

SQL> exec dbms_epg.delete_dad_attribute('APEX', 'error-style') 
Hugs,

Sergio
crispix.paulo
Rank: Programador Júnior
Rank: Programador Júnior
Posts: 17
Joined: Fri, 05 Aug 2011 12:18 pm
Location: São Paulo - SP

Well ... I dropped the user and I'm running the scripts namely to see if it works.

My port 8080 was being used by the Cat HTTP Server tone.

As soon as I finish the execution I'll tell you if it worked.

Sergio, in grating the version, I am using the two versions .... 3.2 Here on the server .... I am installing to 3.2 because of a document that I have for testing.

But I will certainly use the other version.

Thanks.
crispix.paulo
Rank: Programador Júnior
Rank: Programador Júnior
Posts: 17
Joined: Fri, 05 Aug 2011 12:18 pm
Location: São Paulo - SP

Sergio, I performed the procedures again and the links did not work.
It was activated Debuger:

follows error that returned:

Select all

SQL> exec dbms_epg.set_dad_attribute('APEX', 'error-style', 'DebugStyle') ; 
BEGIN dbms_epg.set_dad_attribute('apex', 'error-style', 'DebugStyle') ; END; 
 
* 
ERROR at line 1: 
ORA-24231: database access descriptor (DAD) APEX not found 
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 86 
ORA-06512: at "SYS.DBMS_EPG", line 58 
ORA-06512: at "SYS.DBMS_EPG", line 219 
ORA-06512: at line 1
Hugs,
Paulo Crispim
User avatar
stcoutinho
Moderador
Moderador
Posts: 850
Joined: Wed, 11 May 2011 5:15 pm
Location: são Paulo - SP

Hello Paulo,

Before the command I passed, try to run before (like System) this:

Select all

SQL> EXEC dbms_epg.create_dad('apex', '/apex/*'); 
SQL> commit;
Then repeat the command again Debug and try accessing the Apex page. See if now it passes you more information about the error.

Hugs,

Sergio
User avatar
stcoutinho
Moderador
Moderador
Posts: 850
Joined: Wed, 11 May 2011 5:15 pm
Location: são Paulo - SP

Paulo,

One thing, try to run the command with the Apex in capital:

Select all

SQL> dbms_epg.create_dad('APEX', '/apex/*'); 
SQL commit;
I do not know if this command would be case sensitive. Just for security, try to trigger the same in capital letters.

Hugs,

Coutinho
crispix.paulo
Rank: Programador Júnior
Rank: Programador Júnior
Posts: 17
Joined: Fri, 05 Aug 2011 12:18 pm
Location: São Paulo - SP

Coutinho,

I performed and activated Debuger.

Continues the same error appearing:

follows.


The page can not be displayed

The page you are looking for is not currently available. Maybe the site is going through technical difficulties or you need to adjust the browser settings.
To try to fix network connectivity issues, click Tools, and then "Diagnose Connection Problems ..."

Other options to be tempted:

Click the Update button or try again later.

If you typed the page address in the Address Bar, make sure that it has been typed correctly.

To check the connection settings, click the Tools menu and Internet Options. On the Connections tab, click Settings. Settings must match those provided by the Local Network Administrator (LAN) or the Internet Service Provider.
See if your Internet connection settings are being detected. You can configure Microsoft Windows to examine your network and automatically discover network settings (if your network administrator has enabled this setting).
Click the Tools menu and Internet Options.
On the Connections tab, click LAN Settings.
Select Detect Settings Automatically and click OK.
Some sites require 128-bit security connection. Click the Help menu and over Internet Explorer to determine the security level installed.
If you are trying to access a secure site, make sure your security settings support the site. Click the Tools and Internet Options menu. On the 'Advanced' tab, go to the 'Security' section and verify the SSL 2.0, SSL 3.0, TLS 1.0, PCT 1.0 settings.
Click the Back button to try another link.



Not found server or DNS error
Internet Explorer
User avatar
stcoutinho
Moderador
Moderador
Posts: 850
Joined: Wed, 11 May 2011 5:15 pm
Location: são Paulo - SP

Paulo,

I understand that you are not using any Apache for Apex, and that the connections are being made by the 10G Gateway PL / SQL.

I have consulted another way to activate the Trace in UDump.

For this, run the commands below:

1) As System:

Select all

SQL>execute dbms_epg.set_global_attribute('log-level', 3); --- O log será gerado no /bdump/*.trc.
2) Access the page where the login should appear
3) as system, disable the trace:

Select all

SQL>execute dbms_epg.set_global_attribute('log-level', 0);
4) See the Udump directory, to see if any error message appears;

Only for disengagement:
- The scripts you performed to install APEX reported an installation error?
- Your Oracle 10G bank is installed on your local computer? Are you doing the browser test exactly on the machine where the Bank / Apex is installed?

Another point: Do you even need to run the load_pt-br.sql script? Would not it be possible to do a test by installing Apex again, but without running
this script?

Hugs,
Sergio
crispix.paulo
Rank: Programador Júnior
Rank: Programador Júnior
Posts: 17
Joined: Fri, 05 Aug 2011 12:18 pm
Location: São Paulo - SP

Sergio,

I am not using any apache. Regarding the 10G PL / SQL Gateway, I believe so. I have not installed anything beyond the 10G database and run the Apex scropts. You would have to do some other configuration beyond this.

I'll run again today, tomorrow morning I already have a return.

I am running in the same browser that the Bank / Apex are installed. I'm running on a virtual machine.

I do not need to rotate the load_pt-br.sql script.

Hugs,
Crispim
crispix.paulo
Rank: Programador Júnior
Rank: Programador Júnior
Posts: 17
Joined: Fri, 05 Aug 2011 12:18 pm
Location: São Paulo - SP

Sergio ..

I did the procedures according to your orientation, did not return anything in the trace.
I qualified the Trace before and ran the scripts.

follows a return of one that returned with error:

Select all

*** SERVICE NAME:() 2011-08-09 11:46:18.483 
*** SESSION ID:(160.1) 2011-08-09 11:46:18.483 
kccsga_update_ckpt: num_1 = 8, num_2 = 0, num_3 = 0, lbn_2 = 0, lbn_3 = 0 
Control file created with size 430 blocks 
Prior to RESETLOGS processing... 
ALTER SYSTEM ARCHIVE LOG ALL USING BACKUP CONTROLFILE start 
Database is not in archivelog mode 
ALTER SYSTEM ARCHIVE LOG ALL USING BACKUP CONTROLFILE complete 
*** 2011-08-09 11:46:20.396 
ORA-00313: a abertura falhou para os membros do grupo 1 de log do thread 1 
ORA-00312: thread 1 do log 1 on-line: 'C:\ORACLE\PRODUCT\10.2.0\ORADATA\APEX\REDO01.LOG' 
ORA-27041: n?o e possivel abrir arquivo 
OSD-04002: não é possível abrir arquivo 
O/S-Error: (OS 2) O sistema não pode encontrar o arquivo especificado. 
ORA-00313: a abertura falhou para os membros do grupo 2 de log do thread 1 
ORA-00312: thread 2 do log 1 on-line: 'C:\ORACLE\PRODUCT\10.2.0\ORADATA\APEX\REDO02.LOG' 
ORA-27041: n?o e possivel abrir arquivo 
OSD-04002: não é possível abrir arquivo 
O/S-Error: (OS 2) O sistema não pode encontrar o arquivo especificado. 
ORA-00313: a abertura falhou para os membros do grupo 3 de log do thread 1 
ORA-00312: thread 3 do log 1 on-line: 'C:\ORACLE\PRODUCT\10.2.0\ORADATA\APEX\REDO03.LOG' 
ORA-27041: n?o e possivel abrir arquivo 
OSD-04002: não é possível abrir arquivo 
O/S-Error: (OS 2) O sistema não pode encontrar o arquivo especificado. 
*** 2011-08-09 11:46:43.920
Hugs,
Paul
crispix.paulo
Rank: Programador Júnior
Rank: Programador Júnior
Posts: 17
Joined: Fri, 05 Aug 2011 12:18 pm
Location: São Paulo - SP

Follows the other D TRC file:

Select all

Dump file c:\oracle\product\10.2.0\admin\apex\bdump\apex_lgwr_2080.trc 
Tue Aug 09 11:47:54 2011 
ORACLE V10.2.0.1.0 - Production vsnsta=0 
vsnsql=14 vsnxtr=3 
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production 
With the Partitioning, OLAP and Data Mining options 
Windows XP Version V5.1 Service Pack 3 
CPU                 : 1 - type 586, 1 Physical Cores 
Process Affinity    : 0x00000000 
Memory (Avail/Total): Ph:168M/511M, Ph+PgF:786M/1246M, VA:1739M/2047M 
Instance name: apex 
 
Redo thread mounted by this instance: 1 
 
Oracle process number: 6 
 
Windows thread id: 2080, image: ORACLE.EXE (LGWR) 
 
 
*** SERVICE NAME:() 2011-08-09 11:47:54.942 
*** SESSION ID:(166.1) 2011-08-09 11:47:54.942 
Maximum redo generation record size = 156160 bytes 
Maximum redo generation change vector size = 150672 bytes 
*** 2011-08-09 11:51:51.842 
Media recovery not enabled or manual archival only 0x10000 
*** 2011-08-09 12:13:43.108 
Media recovery not enabled or manual archival only 0x10000 
*** 2011-08-09 12:15:17.894 
Media recovery not enabled or manual archival only 0x10000 
*** 2011-08-09 12:16:52.400 
Media recovery not enabled or manual archival only 0x10000 
*** 2011-08-09 12:18:03.312 
Media recovery not enabled or manual archival only 0x10000 
*** 2011-08-09 12:20:13.289 
Media recovery not enabled or manual archival only 0x10000 
*** 2011-08-09 12:23:10.704 
Media recovery not enabled or manual archival only 0x10000 
*** 2011-08-09 12:24:25.261 
Media recovery not enabled or manual archival only 0x10000 
*** 2011-08-09 14:04:17.658 
Media recovery not enabled or manual archival only 0x10000 
*** 2011-08-09 14:05:37.993 
Media recovery not enabled or manual archival only 0x10000 
*** 2011-08-09 14:06:15.377 
Media recovery not enabled or manual archival only 0x10000
User avatar
stcoutinho
Moderador
Moderador
Posts: 850
Joined: Wed, 11 May 2011 5:15 pm
Location: são Paulo - SP

Paulo,

Worries these errors:

Select all

ORA-00313: a abertura falhou para os membros do grupo 1 de log do thread 1  
ORA-00312: thread 1 do log 1 on-line: 'C:\ORACLE\PRODUCT\10.2.0\ORADATA\APEX\REDO01.LOG'  
ORA-27041: n?o e possivel abrir arquivo  
OSD-04002: não é possível abrir arquivo  
O/S-Error: (OS 2) O sistema não pode encontrar o arquivo especificado.  
ORA-00313: a abertura falhou para os membros do grupo 2 de log do thread 1  
ORA-00312: thread 2 do log 1 on-line: 'C:\ORACLE\PRODUCT\10.2.0\ORADATA\APEX\REDO02.LOG'  
ORA-27041: n?o e possivel abrir arquivo  
OSD-04002: não é possível abrir arquivo  
O/S-Error: (OS 2) O sistema não pode encontrar o arquivo especificado.  
ORA-00313: a abertura falhou para os membros do grupo 3 de log do thread 1  
ORA-00312: thread 3 do log 1 on-line: 'C:\ORACLE\PRODUCT\10.2.0\ORADATA\APEX\REDO03.LOG' 
By chance they appear at Alert.Log? Is your database normal?

If you need to correct this error, there is a link with an explanation and corrective action:
http://dbabrasil-adelson.blogspot.com/2 ... ra-de.html
You mention that your Apex + bank It is on a virtual machine. Are you accessing the browser "inside" from this virtual machine or desktop machine? What would be the operating system of this virtual machine?
Hugs,

Sergio

Hugs,


crispix.paulo
Rank: Programador Júnior
Rank: Programador Júnior
Posts: 17
Joined: Fri, 05 Aug 2011 12:18 pm
Location: São Paulo - SP

I am accessing the browser inside the virtual machine.

The operating system I am using is XP.

The errors are in the alert log:

Select all

ORA-00313: a abertura falhou para os membros do grupo 1 de log do thread 1 
ORA-00312: thread 1 do log 1 on-line: 'C:\ORACLE\PRODUCT\10.2.0\ORADATA\APEX\REDO01.LOG' 
ORA-27041: n?o e possivel abrir arquivo 
OSD-04002: não é possível abrir arquivo 
O/S-Error: (OS 2) O sistema não pode encontrar o arquivo especificado. 
 
Tue Aug 09 11:46:23 2011 
Errors in file c:\oracle\product\10.2.0\admin\apex\udump\apex_ora_1308.trc: 
ORA-00313: a abertORA-00312: thread 2 do log 1 on-line: 'C:\ORACLE\PRODUCT\10.2.0\ORADATA\APEX\REDO02.LOG' 
ORA-27041: n?o e possivel abrir arquivo 
OSD-04002: não é possível abrir arquivo 
O/S-Error: (OS 2) O sistema não pode encontrar o arquivo especificado. 
 
Tue Aug 09 11:46:27 2011 
Errors in file c:\oracle\product\10.2.0\admin\apex\udump\apex_ora_1308.trc: 
ORA-00313: a abertura falhou para os membros do grupo 3 de log do thread 1 
ORA-00312: thread 3 do log 1 on-line: 'C:\ORACLE\PRODUCT\10.2.0\ORADATA\APEX\REDO03.LOG' 
ORA-27041: n?o e possivel abrir arquivo 
OSD-04002: não é possível abrir arquivo 
O/S-Error: (OS 2) O sistema não pode encontrar o arquivo especificado.
I had not seen these mistakes, I will run and try again. This Apex that appears is the name of my bank.
I will correct this error and run again.


Thanks.

Hugs,
Crispim
crispix.paulo
Rank: Programador Júnior
Rank: Programador Júnior
Posts: 17
Joined: Fri, 05 Aug 2011 12:18 pm
Location: São Paulo - SP

Sergio.

Corrected the error and nothing.

I performed all again, and nothing.

Another suggestion?

Thanks.

Hugs,
Crispim
User avatar
stcoutinho
Moderador
Moderador
Posts: 850
Joined: Wed, 11 May 2011 5:15 pm
Location: são Paulo - SP

Paul,

I have a virtual environment with Windows XP and Oracle 10G installed.

I will install on it the Apex 3.2 and see if it works without problems.

With this, I will be able to test the suggestions that I had passed back to you earlier. Maybe he can pass him after some suggestion.

I hope to pass feedback on this during the afternoon of this Thursday.

Hugs,

Sergio
crispix.paulo
Rank: Programador Júnior
Rank: Programador Júnior
Posts: 17
Joined: Fri, 05 Aug 2011 12:18 pm
Location: São Paulo - SP

Sergio, thank you very much.

Hugs
Paul
User avatar
stcoutinho
Moderador
Moderador
Posts: 850
Joined: Wed, 11 May 2011 5:15 pm
Location: são Paulo - SP

Paulo,

I was consulting the Apex Installation Manual 3.2.1 When a point caught my attention: The manual only made mention to Oracle 11g or Xe (nothing 10g) and then I I went to search the internet.

I came across some forums that reported that the EPG (enbedded PL / SQL Gateway) is only true from 11g or Oracle XE 10g.

At first, this solution did not work with Oracle 10g. Funny, no? Exist for XE 10G and not for Oracle 10G.

I continued to search for this theme, when I came across the link below:
http://cglendenningoracle.blogspot.com/ ... ation.html Oracle Apex on 10g Using the PL / SQL Gateway? YES!)

In it, Craig Glendenning (Author) explains step by step how to install Apex 3.2.1 on an Oracle 10G bank. But he warns that this configuration - even working - is not approved by Oracle. So only use it for test or study environments, okay?

I refizes his steps in my virtual environment, and I could log in normally in the Apex links ("... / Apex / Apex", "... / Apex_Admin").

I did not follow all steps of the note (I jumped some) and then I am passing a summary of what I did.

It would be interesting for you to consult the link to know all the procedures he suggested:

Select all

1) Mover o apex_3.2.zip para uma subpasta do ORACLE_HOME ($OH) do 10g (no meu caso: C:/oracle/product/10.2.0). 
   Não seria um passo obrigatorio, mas seria legal manter no Oracle Home os scripts originais do APEX, caso sejam necessários no futuro; 
 
2) Descomprimir o arquivo zipado apex_3.2.zip (unzip apex_3.2.zip) 
   Descompacte na própria pasta. Se for criado abaixo de "$OH/apex" uma pasta "apex" ($OH/apex/apex), mova o conteudo para o diretório acima, mantendo somente a pasta $OH/apex 
    
3) Pelo MS-DOS, conecte-se via sql*plus como sysdba e execute scripts de instalação 
    
   cd C:/oracle/product/10.2.0/apex    
   obs: informe aquí o diretório do $OH/apex do seu ambiente) 
   sqlplus "/ as sysdba 
    
   SQL> @apexins sysaux sysaux temp /i/ 
    
   SQL> @apxchpwd <informe_aqui_a_senha_do_admin> 
   SQL> @apex_epg_config C:/oracle/product/10.2.0/     
            Obs: informe aqui o diretório logo acima da pasta "apex".  
                    No meu caso, seria o próprio $OH 
 
4) Se algum dos scripts acima se desconectar automaticamente, entre novamente como SYSDBA. Continue executando os comandos abaixo: 
       
   cd C:/oracle/product/10.2.0/apex   
   obs: informe aquí o diretório do $OH/apex do seu ambiente 
   sqlplus "/ as sysdba 
 
   SQL> @apxldimg.sql C:/oracle/product/10.2.0/     
            obs: informe aqui o diretório logo acima da pasta "apex".  
                   No meu caso, seria o próprio $OH 
    
   SQL> @apxxepwd.sql admin 
    
   SQL> EXEC DBMS_XDB.SETHTTPPORT(0); 
   SQL> ALTER USER ANONYMOUS ACCOUNT UNLOCK; 
   SQL> ALTER USER APEX_PUBLIC_USER ACCOUNT UNLOCK; 
   SQL> ALTER USER APEX_030200 ACCOUNT UNLOCK; 
   SQL> ALTER USER FLOWS_FILES ACCOUNT UNLOCK; 
   SQL> EXEC DBMS_XDB.SETHTTPPORT(8080); 
 
  
5) Execute a querie abaixo para ver a configuração DAD:  
  
 SQL> select * from  dba_epg_dad_authorization; 
  
6) Se não aparecer nada (foi o meu caso) executar o comando abaixo: 
 
  SQL>begin   
             dbms_epg.authorize_dad  
                (  dad_name => 'APEX',  user => 'ANONYMOUS'); 
          end; 
          / 
 
5) Cheque novamente a configuração DAD:  
  
 SQL> select * from  dba_epg_dad_authorization; 
  
      DAD_NAME     USERNAME 
      --------           -------- 
      APEX              ANONYMOUS 
       
6) A partir daqui, já é possível você fazer teste de acesso ao APEX 
 
 
7) Com o DAD configurado, se houver necessidade de DEBUG, o mesmo pode ser ativado com o comando abaixo: 
    
   SQL> execute dbms_epg.set_global_attribute('log-level', 7); 
    
   obs: Os traces serão gerados no diretório de UDUMP do banco.

See if you can repeat this script and do the Apex now work.

Hugs,

Sergio Coutinho
crispix.paulo
Rank: Programador Júnior
Rank: Programador Júnior
Posts: 17
Joined: Fri, 05 Aug 2011 12:18 pm
Location: São Paulo - SP

Sergio

Really very strange in the XE working and at 10g no .. but anyway.

is now asking for the password for the XDB

is like this: the screen appears

XDB
appears User Name:
Password:


Which user, which password?

But from now on I thank all your help ... I have ever had a great evolution.

Hugs,
Paulo Crispim
User avatar
stcoutinho
Moderador
Moderador
Posts: 850
Joined: Wed, 11 May 2011 5:15 pm
Location: são Paulo - SP

Funny,

For me he also asked for a password in the first few times.

Try System / <password_usuario_system> ....

If it does not work, try admin / <password_usuario_admin_apex>

After that, the Apex screen appears, both in the development environment (/ APEX / APEX) and the administrator (/ APEX / APEX_ADMIN).

I do not know if he will be asking for the XDB password in the future. I tried to run a script that is shown in the link I passed you, but it resulted in XML error. I do not know if the script is related to XDB or not.

let me know if you notice that he will be asking for the either the XDB password, okay?

Hugs,

Sergio
User avatar
stcoutinho
Moderador
Moderador
Posts: 850
Joined: Wed, 11 May 2011 5:15 pm
Location: são Paulo - SP

Paulo,

I consulted an OTN (Oracle) forum and I came across some developers complaining about the same problem as you and I commented.

A developer said that to resolve the problem of the continuous request of the password the XDB, simply run as System the command below:

Select all

SQL> alter user xdb unlock account;
If the XDB password is continuously requested, apply this command to the database.

Let me know after the result of your tests, okay?

Hugs,

Sergio Coutinho
User avatar
stcoutinho
Moderador
Moderador
Posts: 850
Joined: Wed, 11 May 2011 5:15 pm
Location: são Paulo - SP

Paul,

Sorry to post the solution into pieces. It seems that the XDB password is an "indication" that Apex 3.2 "is not supported" in 10G.

But a developer mentioned that running the script below - plus user unlocking XDB - would solve the problem of additional credential request:
. ... if you wish to enable anonymous access to the ml db repository, the following code creatates the "<allow-repository-anonymous-Access>" Element IF it is missing, or updates it if it is already present in the xdbconfig. XML File.

Select all

 
CONN sys/password AS SYSDBA 
 
SET SERVEROUTPUT ON 
DECLARE 
l_configxml XMLTYPE; 
l_value VARCHAR2(5) := 'true'; -- (true/false) 
BEGIN 
l_configxml := DBMS_XDB.cfg_get(); 
 
IF l_configxml.existsNode('/xdbconfig/sysconfig/protocolconfig/httpconfig/allow-repository-anonymous-access') = 0 THEN 
-- Add missing element. 
SELECT insertChildXML 
( 
l_configxml, 
'/xdbconfig/sysconfig/protocolconfig/httpconfig', 
'allow-repository-anonymous-access', 
XMLType('<allow-repository-anonymous-access xmlns="http://xmlns.oracle.com/xdb/xdbconfig.xsd">' || 
l_value || 
'</allow-repository-anonymous-access>'), 
'xmlns="http://xmlns.oracle.com/xdb/xdbconfig.xsd"' 
) 
INTO l_configxml 
FROM dual; 
 
DBMS_OUTPUT.put_line('Element inserted.'); 
ELSE 
-- Update existing element. 
SELECT updateXML 
( 
DBMS_XDB.cfg_get(), 
'/xdbconfig/sysconfig/protocolconfig/httpconfig/allow-repository-anonymous-access/text()', 
l_value, 
'xmlns="http://xmlns.oracle.com/xdb/xdbconfig.xsd"' 
) 
INTO l_configxml 
FROM dual; 
 
DBMS_OUTPUT.put_line('Element updated.'); 
END IF; 
 
DBMS_XDB.cfg_update(l_configxml); 
DBMS_XDB.cfg_refresh; 
END; 
I hope that done all this, finally your Apex works on 10G.

Hugs,

Sergio Coutinho
crispix.paulo
Rank: Programador Júnior
Rank: Programador Júnior
Posts: 17
Joined: Fri, 05 Aug 2011 12:18 pm
Location: São Paulo - SP

Sergio,

Today I was finally able to install and access Apex.

Thanks for the tips.

Hugs
Paulo Crispim
Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 18 guests