Create the update with joint statement / select
OK, so here is the real project far East:Update (select oci.identifier_type
vhb.offender_id_display
oci.comment_text
vhb.offender_book_id
oci.offender_book_id
of OIC, HBV v_header_block offender_case_identifiers
where
OCI.offender_book_id = vhb.offender_book_id
and vhb.offender_id_display =: ppid
and oci.case_id <>: Pärn
and oci.identifier_type = 'ARN')
Set offender_case_identifiers.identifier_type = 'ARN2;
below to get accurate data I need to change (checked work):
(select oci.identifier_type
vhb.offender_id_display
oci.comment_text
vhb.offender_book_id
oci.offender_book_id
of OIC, HBV v_header_block offender_case_identifiers
where
OCI.offender_book_id = vhb.offender_book_id
and vhb.offender_id_display =: ppid
and oci.case_id <>: Pärn
and oci.identifier_type = 'ARN')
So Im trying in the 1st example to change the column above oci.identifier_type = "ARN2", but I get the following error: "ORA-0904: 'OFFENDER_CASE_IDENTIFIERS'. '. "IDENTIFIER_TYPE": invalid identifier.
Published by: 969659 on November 6, 2012 09:53
msullyguy wrote:
Initially, to display data before, I run:Select * from offender_case_identifiers oci where offender_book_id = :pobi and oci.identifier_type like '%ARN%';
and it returns:
OFFENDER_BOOK_ID IDENTIFIER_TYPE COMMENT_TEXT CASE_ID
* 1 035 481 * DNA * 01554156 * 1 713 565
* 1 035 481 * DNA * 01554156 * 1 713 566
* 1 035 481 * DNA * 01554369 * 1 714 912
* 1 035 481 * DNA * 01554369 * 1 714 913After executing your script suggested:
update offender_case_identifiers ociq set Identifier_type = 'ARN2' where ociq.offender_book_id in (select offender_book_id from v_header_block where offender_id_display = :ppid) and ociq.case_id != :parn AND ociq.identifier_type = 'ARN'
and using the +: ppid = 0000421337 + and +: parn = 01554156 + it changes all identifier_type in "ARN2 '... Here is the result:
OFFENDER_BOOK_ID IDENTIFIER_TYPE COMMENT_TEXT CASE_ID
* 1 035 481 * ARN2 * 01554156 * 1 713 565
* 1 035 481 * ARN2 * 01554156 * 1 713 566
* 1 035 481 * ARN2 * 01554369 * 1 714 912
* 1 035 481 * ARN2 * 01554369 * 1 714 913I need to change only the identifier_type in "ARN2" on records that do not have the same value as the entry: Pärn
I think that we are on the right track, but still can not wrap my head around the solution... once again, I thank you all for the continued support.
What you have here, so it seems that 01554156 is the comment_text, not the case_id. change what I wrote to
and ociq.comment_text != :parn
Tags: Database
Similar Questions
-
How to create the table with the description of the table
Hello
I would like to create the array with the description of the table (such as the creation of package or procedure with comments).
Is it possible to achieve thanks to the oracle, if possible please help me achieve this goal.
Thank you and best regards,
Ibrahim Sayyed.
> create table test (col1 number);
> comment table test is "about a comment ';
> select comments from user_tab_comments where table_name = 'TEST ';
COMMENTS
____________________________________________________________________
This is a comment -
Create the database with a set of characters
Hello
I need to create a database with the character US8PC437 (platform Linux Redhat 5.4 64-bit, database version 11.2.0.3), but this character set do not appear when I create the database with the database assistant (DBCA).
Any help will be apreciated.
Best regards
Antonio Serrano
Published by: albrotar on March 6, 2012 09:14While AL32UTF8 is certainly recommended for the Oracle database character set, use only, if your application provider has confirmed that their application will work with a set of characters to multibyte database.
To create a database US8PC437 (it is rarely a choice, in fact) with DBCA 11.2, select the "character sets" tab, once shown, then select the option 'Choose from the list of character sets' and uncheck 'Show recommended only character sets '. This will add US8PC437 to the "Database character set" drop-down list. Select "US8PC437" from the list and continue the process of creation.
But first, contact your provider and ask a compatible Unicode version of your application.
-Sergiusz
-
Creating the table with time stamp
I need to create the table with the data inside buffer
Can you help me pls
If it works today,
create the table test_04NOV2010 in select * from product where product_code = '101'
If executed tmrw,
create the table test_05NOV2010 in select * from product where product_code = '101'
can is it you pls let me know how to use it in PL SQLdeclare v_date varchar2(25); v_sql varchar2(20); begin select to_char(sysdate,'DDMONYYYY') into v_date from dual; v_sql := ' create table ' ||TEST||'_'||'v_date'|| ' as ' ' select * from Product where product_code = '101' EXECUTE IMMEDIATE v_sql; end;
Can you help me pls
Thank you very muchdeclare v_date varchar2(25); v_sql varchar2(2000); --Noted this. this was also small. begin select to_char(sysdate,'DDMONYYYY') into v_date from dual; v_sql := ' create table TEST_'||v_date|| ' as select * from Product where product_code = ''101'''; EXECUTE IMMEDIATE v_sql; end;
You can use the Q operator also.
DECLARE v_date varchar2(25); v_sql varchar2(2000); BEGIN select to_char(sysdate,'DDMONYYYY') into v_date from dual; v_sql := ' create table TEST_'||v_date|| Q'[ as select * from Product where product_code = '101']'; EXECUTE IMMEDIATE v_sql; END;
Published by: mohamed on November 4, 2010 05:32
-
How to create a cursor on a statement select union?
Hello
Using Oracle 10 g RAC + ASM (VERSION 1002000300)
What is the right way to create a cursor on a statement select union?
Is this possible?
lines, results in code error PLS-00201: sT: = crsR.STATUS; sS: = crsR.TIME;
Procedure below:
-----
CREATE OR REPLACE PROCEDURE BUILD_SUMMARY IS
CsrO CURSOR IS
SELECT
STATUS,
TIME
DE)
SELECT
STATUS OF SUBSTR (DESCRIPTION, 1, 50),
To_char (TIMESTAMP, "MM/DD/YY hh12:mi:ss'") TIMES
OF GLOBALSALES. CUBE_STATUS
UNION ALL
SELECT
"BUILD TOTAL TIME."
TO_CHAR (TO_DATE('00:00:00','HH24:MI:SS') + (MAX (TIMESTAMP) - MIN (TIMESTAMP)), 'HH24:MI:SS')
OF GLOBALSALES. CUBE_STATUS);
Scrr csrO % ROWTYPE;
sT LONG: = ";
sS LONG: = ";
BEGIN
FOR Scrr IN csrO
LOOP
sT: = crsR.STATUS;
sS: = crsR.TIME;
DBMS_OUTPUT. Put_line(St ||) ' ' || sS);
END LOOP;
END;
/The results of changes in the same PLS-00201 error messages stating the: identifier ' CRSR. STATUS must be declared
and the identifier ' CRSR. STATUS must be declared
...
FOR Scrr IN csrO
LOOP
sT: = crsR.STATUS;
sS: = crsR.TIME;
DBMS_OUTPUT. Put_line(St ||) ' ' || sS);
END LOOP;You are not running what I posted here.
Please replace this line here:
FOR csrR IN csrO
to do this:
FOR crsR IN csrO
It helps if you name your variables and objects after something more meaningful and less complicated, for example:
FOR cur_rec IN csrO LOOP sT := cur_rec.STATUS; sS := cur_rec.TIME; DBMS_OUTPUT.PUT_LINE(sT || ' ' || sS); END LOOP;
-
How to store the output of a statement select * statement in a file?
How to store the output of a statement select * / statement of dsc in a file?As user sys:
CREATE OR REPLACE DIRECTORY TEST_DIR AS '\tmp\myfiles' / GRANT READ, WRITE ON DIRECTORY TEST_DIR TO myuser /
As myuser:
CREATE OR REPLACE PROCEDURE run_query(p_sql IN VARCHAR2 ,p_dir IN VARCHAR2 ,p_header_file IN VARCHAR2 ,p_data_file IN VARCHAR2 := NULL) IS v_finaltxt VARCHAR2(4000); v_v_val VARCHAR2(4000); v_n_val NUMBER; v_d_val DATE; v_ret NUMBER; c NUMBER; d NUMBER; col_cnt INTEGER; f BOOLEAN; rec_tab DBMS_SQL.DESC_TAB; col_num NUMBER; v_fh UTL_FILE.FILE_TYPE; v_samefile BOOLEAN := (NVL(p_data_file,p_header_file) = p_header_file); BEGIN c := DBMS_SQL.OPEN_CURSOR; DBMS_SQL.PARSE(c, p_sql, DBMS_SQL.NATIVE); d := DBMS_SQL.EXECUTE(c); DBMS_SQL.DESCRIBE_COLUMNS(c, col_cnt, rec_tab); FOR j in 1..col_cnt LOOP CASE rec_tab(j).col_type WHEN 1 THEN DBMS_SQL.DEFINE_COLUMN(c,j,v_v_val,2000); WHEN 2 THEN DBMS_SQL.DEFINE_COLUMN(c,j,v_n_val); WHEN 12 THEN DBMS_SQL.DEFINE_COLUMN(c,j,v_d_val); ELSE DBMS_SQL.DEFINE_COLUMN(c,j,v_v_val,2000); END CASE; END LOOP; -- This part outputs the HEADER v_fh := UTL_FILE.FOPEN(upper(p_dir),p_header_file,'w',32767); FOR j in 1..col_cnt LOOP v_finaltxt := ltrim(v_finaltxt||','||lower(rec_tab(j).col_name),','); END LOOP; -- DBMS_OUTPUT.PUT_LINE(v_finaltxt); UTL_FILE.PUT_LINE(v_fh, v_finaltxt); IF NOT v_samefile THEN UTL_FILE.FCLOSE(v_fh); END IF; -- -- This part outputs the DATA IF NOT v_samefile THEN v_fh := UTL_FILE.FOPEN(upper(p_dir),p_data_file,'w',32767); END IF; LOOP v_ret := DBMS_SQL.FETCH_ROWS(c); EXIT WHEN v_ret = 0; v_finaltxt := NULL; FOR j in 1..col_cnt LOOP CASE rec_tab(j).col_type WHEN 1 THEN DBMS_SQL.COLUMN_VALUE(c,j,v_v_val); v_finaltxt := ltrim(v_finaltxt||',"'||v_v_val||'"',','); WHEN 2 THEN DBMS_SQL.COLUMN_VALUE(c,j,v_n_val); v_finaltxt := ltrim(v_finaltxt||','||v_n_val,','); WHEN 12 THEN DBMS_SQL.COLUMN_VALUE(c,j,v_d_val); v_finaltxt := ltrim(v_finaltxt||','||to_char(v_d_val,'DD/MM/YYYY HH24:MI:SS'),','); ELSE v_finaltxt := ltrim(v_finaltxt||',"'||v_v_val||'"',','); END CASE; END LOOP; -- DBMS_OUTPUT.PUT_LINE(v_finaltxt); UTL_FILE.PUT_LINE(v_fh, v_finaltxt); END LOOP; UTL_FILE.FCLOSE(v_fh); DBMS_SQL.CLOSE_CURSOR(c); END;
This allows the header line and the data to write into files separate if necessary.
for example
SQL> exec run_query('select * from emp','TEST_DIR','output.txt'); PL/SQL procedure successfully completed.
Output.txt file contains:
empno,ename,job,mgr,hiredate,sal,comm,deptno 7369,"SMITH","CLERK",7902,17/12/1980 00:00:00,800,,20 7499,"ALLEN","SALESMAN",7698,20/02/1981 00:00:00,1600,300,30 7521,"WARD","SALESMAN",7698,22/02/1981 00:00:00,1250,500,30 7566,"JONES","MANAGER",7839,02/04/1981 00:00:00,2975,,20 7654,"MARTIN","SALESMAN",7698,28/09/1981 00:00:00,1250,1400,30 7698,"BLAKE","MANAGER",7839,01/05/1981 00:00:00,2850,,30 7782,"CLARK","MANAGER",7839,09/06/1981 00:00:00,2450,,10 7788,"SCOTT","ANALYST",7566,19/04/1987 00:00:00,3000,,20 7839,"KING","PRESIDENT",,17/11/1981 00:00:00,5000,,10 7844,"TURNER","SALESMAN",7698,08/09/1981 00:00:00,1500,0,30 7876,"ADAMS","CLERK",7788,23/05/1987 00:00:00,1100,,20 7900,"JAMES","CLERK",7698,03/12/1981 00:00:00,950,,30 7902,"FORD","ANALYST",7566,03/12/1981 00:00:00,3000,,20 7934,"MILLER","CLERK",7782,23/01/1982 00:00:00,1300,,10
The procedure allows for the header and the data to separate files if necessary. Just by specifying the file name "header" will put the header and the data in a single file.
-
I can't check the updates with Windows 7 computer
I have a Windows 7 laptop. When I check the updates, I get error code 80072F8F. No matter what I do to update the date and time, it may not always check the updates. The last successful update was on September 19. I tried to ask a person to Microsoft through online help. She had me try all sorts of things during the past month without result. Finally, she transferred my problem to his supervisor, who told me that I had to completely reinstall Windows. I don't have a disc of Windows 7 because it is preinstalled on my laptop. She then told me that she would transfer my problem to a COMPUTER technician who would call me. No one has called. I have sent to let her know I had not heard anything, and in response I received an automated email stating that my problem has been resolved and that my case has been closed. Someone please help! My computer has not had an update for 3 months!
This isn't the problem, as I said in my question above. It has nothing to do with the date or time.
I just found an answer, tried and it works!
Here it is:
MikeGrimes 2Already voté
PLEASE NOTE: The following instructions are specifically for ESET Smart Security or NOD32, however, I suspect other programs where content filtering of the SSL connections may cause this problem too.
You run ESET/NOD32 Antivirus? If Yes and you have active SSL protocol filtering you add an exception
(1) open the main window of ESET by clicking the ESET icon next to the clock system or by clicking Start > all programs > ESET > ESET Smart Security or ESET NOD32 Antivirus.
2) press F5 on your keyboard to open the advanced configuration window.
3) navigate to Antivirus and antispyware > protocol filtering > SSL. Click on "ask on sites not visited (exclusions can be set). Click OK.
(4) check the Windows updates
(5) a pop - up of ESET will inform you about an attempt to communicate over SSL. Click on exclude.
(6) that excludes the verification by ESET update Windows. Exclusions are kept in the Antivirus and antispyware > protocol filtering > SSL > Certificates > excluded certificates.
(7) to navigate back to the Antivirus and Antispyware > protocol filtering > SSL. Restore the SSL filtering to your previous setting mode, that is to select the option "Always scan SSL protocol".
(8) check the option ' apply created exceptions based on certificates "is selected. Click Ok to close the advanced settings window.
Alternatively, you can simply disable SSL filtering in step 3.
-
Create the file with pl/sql procedure
Hi all
I do not know how to create a file that will contain the data of the select statements. I'm leaving again in oracle and pl/sql, and I apologize in advance for the questions of the rookie.
CREATE OR REPLACE PROCEDURE ECM_DATA.check_pad
IS
v_padron_check VARCHAR2 (50);
v_padron_number VARCHAR2 (50);
BEGIN
SELECT count (pd.estado)
IN v_padron_check
OF par6.padrones_datos pd,.
PAR6.padrones p,
PAR6. Fechas f
If pd.estado not in ('2000 ', 8000')
AND PD. FILE = P.ARCHIVO
AND P.FECHA = F.fech_s;
DBMS_OUTPUT. Put_line ('Št. neuspešnih zapisov: ' | v_padron_check);
FOR (IN) pad
SELECT pd.archivo
OF par6.padrones_datos pd,.
PAR6.padrones p,
PAR6. Fechas f
WHERE the pd.estado not in ('2000 ', 8000')
AND pd.archivo = p.archivo
AND P.FECHA = F.fech_s
)
LOOP
dbms_output.put_line (' Padrón št.: ' | pad.archivo);
END LOOP;
END;
/
Thanks for any help.
Kind regards
Robert
Hi user8660054,
If you want to create the file on the server where your DB is installed and then use that I provide you. It requires a DIRECTORY (with read/write privileges) to create.
You can use my proc as below...
Start
generic_report_genrtr (p_query_in => ' Select * from user_tables ',)
p_separator => ","-a comma separated values
p_dir_in-online "nom_repertoire."
p_filenm_in-online "OUTPUT_FILE_NM") IS
end;
-
Bug trying to create the link with the Cyrillic characters in URL
I'm transforming words in my text on the links, but with Cyrillic characters in their URL (such as https://en.wiktionary.org/wiki/ хорошо). The problem is that, depending on how create the link, the page refuses to accept the URL.
It's my preferred method (which accepts not the Pages):
- Write or select the text to be transformed into link;
- Press cmd + k;
- Paste the URL (https://en.wiktionary.org/wiki/ хорошо) in the field;
- Hit enter or click out;
- When I check the link, it is www.apple.com.
The strange is that other methods work very well.
1 against nature (accepts Pages):
- Delete my word;
- In its place, paste the URL (https://en.wiktionary.org/wiki/ хорошо);
- Hit the space bar (a link is created automatically with the correct URL);
- Edit the link that is created and change its text;
- When I check the link, he kept correct.
2 against nature (accepts Pages):
- Write or select the text to be transformed into link;
- Press cmd + k;
- Find a way to build a version with my URL (https://en.wiktionary.org/wiki/%D1%85%D0%BE%D1%80%D0%BE%D1%88%D0%BE) escape sequence;
- Paste the URL with escape sequence in link field;
- Hit enter or click out;
- When I check the link, ironically, is хорошо https://en.wiktionary.org/wiki/.
To stretch more:
- Editing a link created successfully (with any success methods above);
- Changed its URL (from хорошо https://en.wiktionary.org/wiki/ to https://en.wiktionary.org/wiki/ плохо)
- Hit enter or click out;
- When I check the link, it's still хорошо https://en.wiktionary.org/wiki/;
- Finally edited and changed its URL still once, now remove the Cyrillic (https://en.wiktionary.org/wiki);
- Press enter, click out and he finally accepted the URL.
Pages seems to be denying the creation of links with the URL that contains Cyrillic characters (only?), but exclusively through his little creation of link popup. I think it's a simple problem, but I'm sure it's very annoying.
Everyone knows the same?
Cyrillic characters in the range of table encoding UTF-8 code points u + 0400 - u + 04 FF are represented by two bytes. These people must be encoded as a percentage (read the two paragraphs of the current standard of article), as the Pages v5.6.2 will convert automatically URI to this encoding for you in the link Inspector. It will simply ignore what it considers incorrect URI links, they are Cyrillic, or even English.
Use what is easier for you, and that Pages v5.6.2 accepts.
-
problem of traffic flow with tunnel created the network with a tunnel to a VPN concentrator
Hi, I worked with Cisco and the seller for 2 weeks on this.II am hoping that what we are witnessing will ring a Bell with someone.
Some basic information:
I work at a seller who needs from one site to the other tunnel. There are currently 1 site to another with the seller using a Juniper SSG, which works without incident in my system. I'm transitioning to routers Cisco 2811 and put in place a new tunnel with the seller for the 2800 uses a different public ip address in my address range. So my network has 2 tunnels with the provider that uses a Cisco VPN concentrator. The hosts behind the tunnel use 20x.x.x.x public IP addresses.
My Cisco router will create a tunnel, but I can't not to hosts on the network of the provider through the Cisco 2811, but I can't get through the tunnel of Juniper. The seller sees my packages and provider host meets them and sends them to the tunnel. They never reach the external interface on my Cisco router.
I'm from the external interface so that my endpoint and the peers are the same IP address. (note, I tried to do a static NAT and have an address of tunnel and my different host to the same result.) Cisco has confirmed that I do have 2 addresses different and this configuration was a success with the creation of another successful tunnels toa different network.)
I tested this configuration on a network of transit area before moving the router to the production network and my Cisco 2811 has managed to create the tunnel and ping the inside host. Once we moved the router at camp, we can no longer ping on the host behind the seller tunnel. The seller assured me that the tunnel setting is exactly the same, and he sees his host to send traffic to the tunnel. The seller seems well versed with the VPN concentrator and manages connections for many customers successfully.
The seller has a second VPN concentrator on a separate network and I can connect to this VPN concentrator with success of the Cisco 2811 who is having problems with the hub, which has also a tunnel with Gin.
Here is what we have done so far:
(1) confirm the config with the help of Cisco 2811. The tunnel is up. SH cyrpto ipa wristwatch tunnel upward.
(2) turn on Nat - T side of the tunnel VPN landscapers
(3) confirm that the traffic flows properly a tunnel on another network (which would indicate that the Cisco config is ok)
(4) successfully, tunnel and reach a different configuration hosting
(5) to confirm all the settings of tunnel with the seller
(6) the seller confirmed that his side host has no way and that it points to the default gateway
(7) to rebuild the tunnel from scratch
8) confirm with our ISP that no way divert traffic elsewhere. My gateway lSP sees my directly connected external address.
(9) confirm that the ACL matches with the seller
(10) I can't get the Juniper because he is in production and in constant useIs there a known issue with the help of a VPN concentrator to connect to 2 tunnels on the same 28 network range?
Options or ideas are welcome. I had countless sessions with Cisco webex, but do not have access to the hub of the seller. I can forward suggestions.
Here's a code
crypto ISAKMP policy 1
BA 3des
md5 hash
preshared authentication
Group 2
!
crypto ISAKMP policy 2
BA 3des
preshared authentication
Group 2Crypto ipsec transform-set mytrans aes - esp esp-sha-hmac
Crypto-map dynamic dynmap 30
Set transform-set RIGHTISAKMP crypto key
address No.-xauth interface FastEthernet0/0
Description $ETH-LAN$$ETH-SW-LAUNCH$$INTF-INFO-FE $ 0/0
IP255.255.255.240
IP access-group 107 to
IP access-group out 106
NAT outside IP
IP virtual-reassembly
route IP cache flow
automatic duplex
automatic speed
crypto mymap maplogging of access lists (applied outside to get an idea of what will happen. No esp traffic happens, he has never hits)
allowed access list 106 esp host
host newspaper
106 ip access list allow a whole
allowed access list 107 esp hosthost Journal
access-list 107 permit ip hosthost Journal access-list 107 permit ip host
host Journal
107 ip access list allow a wholeCrypto isa HS her
IPv4 Crypto ISAKMP Security Association
status of DST CBC State conn-id slot
QM_IDLE ASSETS 0 1010 "Mymap" ipsec-isakmp crypto map 1
Peer =.
Extend the 116 IP access list
access - list 116 permit ip hosthost (which is a public IP address))
Current counterpart:
Life safety association: 4608000 kilobytes / 2800 seconds
PFS (Y/N): N
Transform sets = {}
myTrans,
}OK - so I have messed around the lab for 20 minutes and came up with the below (ip are IP test:-)
(4) ip nat pool crypto-nat 10.1.1.1 10.1.1.1 prefix length 30 <> it comes to the new address of NAT
!
(1) ip nat inside source list 102 interface FastEthernet0/0 overload <> it comes to the interface by default NAT!
IP nat inside source map route overload of crypto-nat of crypto-nat pool <> it is the policy of the NAT function!
(6) access-list 101 permit ip 172.16.1.0 0.0.0.255 172.16.2.0 0.0.0.255 <> defines the IP source and destination traffic
!
(2) access-list 102 deny ip 172.16.1.0 0.0.0.255 172.16.2.0 0.0.0.255 <> does not NAT the normal communication
(3) access-list 102 deny ip 10.1.1.1 host 172.16.2.0 0.0.0.255 <> does not re - NAT NAT
(1) access-list 102 permit ip 172.16.1.0 0.0.0.255 any <> allows everyone else to use the IP Address of the interface for NAT
!
(5) crypto-nat route-map permit 5 <> condition for the specific required NAT
corresponds to the IP 101 <> game of traffic source and destination IP must be NAT'td(7) access list 103 permit ip 10.1.1.1 host 172.16.2.0 0.0.0.255 <> crypto acl
Then, how the works above, when a package with the what IP 172.16.1.0/24 source wants to leave the router to connect to google, say the source will change to IP interface (1). When 172.16.1.0/24 wants to talk to172.16.2.0/24, it does not get translated (2). When the remote end traffic equaled the following clause of NAT - the already NAT'td IP will not be affected again (3) when a host 172.16.1.0/24 wants to communicate with 172.16.2.20/24 we need a NAT NAT specific pool is required (4). We must define a method of specific traffic to apply the NAT with a roadmap (5) which applies only when the specific traffic (6), then simply define the interesting traffic to the VPN to initiate and enable comms (7) corresponding
-
Create the user with privileges only data entry.
Hello guys,.
A very basic question. I created the request of APEX, well obviously the user with whom I created this application has developer access, now I want to create a user who is able to see the developed application, I tried to find the user options, but could not. Someone can help me to find the option, I need to follow, so that the newly created user is only able to enter data into forms and run reports and should not be able to make changes in the application developed.
Concerning
Faisal Niazi says:
A very basic question. I created the request of APEX, well obviously the user with whom I created this application has developer access, now I want to create a user who is able to see the developed application, I tried to find the user options, but could not. Someone can help me to find the option, I need to follow, so that the newly created user is only able to enter data into forms and run reports and should not be able to make changes in the application developed.
Create 'end users' by selecting No for the user is an administrator of the workspace and the user is a developer account privilege options create new user accounts. These users connect to the APEX Application Builder. It can be given direct access to a request by specifying the ID of the application or alias to the URL:
apex.oracle.com/pls/apex/f?p=
or
apex.oracle.com/pls/apex/f?p=
Using an alias for the application is recommended.
To restrict user access to pages, components and specific applications, create authorisation schemes and the apply to the application level.
-
Syntax to create the view with 2 inline tables
Hello
If I run this SQL, I can compile a view without error:
CREATE OR REPLACE FORCE VIEW APPS.XX_TEST ( period_name , ytd ) AS with tbl_data AS ( SELECT '1314-03:OCT' period_name, -100 YTD FROM DUAL UNION ALL SELECT '1314-03:OCT' period_name, -1250 YTD FROM DUAL UNION ALL SELECT '1314-03:OCT' period_name, 10922 YTD FROM DUAL UNION ALL SELECT '1314-02:SEP' period_name, -100 YTD FROM DUAL UNION ALL SELECT '1314-01:AUG' period_name, 0 YTD FROM DUAL UNION ALL SELECT '1314-00:OBL' period_name, 0 YTD FROM DUAL UNION ALL SELECT '1213-14:CBL' period_name, -350 YTD FROM DUAL UNION ALL SELECT '1213-13:ADJ' period_name, -350 YTD FROM DUAL UNION ALL SELECT '1213-12:JUL' period_name, -100 YTD FROM DUAL ) SELECT period_name , ytd FROM tbl_data;
I need to create a view that includes the 2 tables inline (sorry if this is the incorrect terminology), using this SQL:
CREATE OR REPLACE FORCE VIEW APPS.XX_TEST2 ( period_name , ytd ) AS with tbl_data AS ( SELECT '1314-03:OCT' period_name, -100 YTD FROM DUAL UNION ALL SELECT '1314-03:OCT' period_name, -1250 YTD FROM DUAL UNION ALL SELECT '1314-03:OCT' period_name, 10922 YTD FROM DUAL UNION ALL SELECT '1314-02:SEP' period_name, -100 YTD FROM DUAL UNION ALL SELECT '1314-01:AUG' period_name, 0 YTD FROM DUAL UNION ALL SELECT '1314-00:OBL' period_name, 0 YTD FROM DUAL UNION ALL SELECT '1213-14:CBL' period_name, -350 YTD FROM DUAL UNION ALL SELECT '1213-13:ADJ' period_name, -350 YTD FROM DUAL UNION ALL SELECT '1213-12:JUL' period_name, -100 YTD FROM DUAL ), got_analytics AS ( SELECT period_name, ytd, ROW_NUMBER () OVER (ORDER BY period_name) AS a_num, ROW_NUMBER () OVER (ORDER BY period_name DESC) AS d_num, FIRST_VALUE (ytd) OVER (ORDER BY period_name) - FIRST_VALUE (ytd) OVER (ORDER BY period_name DESC) AS dif FROM tbl_data ) SELECT * FROM got_analytics;
I get this message:
ORA-24344: success with compilation error
There are no other errors but to provide additional information. I am using TOAD.
I was wondering if it is not possible to create a view in this way, or if I'm missing something?
I had a peek here:
ORA-24344: success with Compilation error
I'm using TOAD, trying to SHOW the ERRORS immediately after the code above only returned 'No Errors'.
I also looked here:
ORA-24344: success with compilation error
Ran the same code SQL/Plus, but "Show Errors" or "see the err" also returned "No. Errors."
Any advice would be much appreciated.
Thank you very much.
Hello
Try this
CREATE OR REPLACE FORCE VIEW APPS.XX_TEST2 ( period_name , ytd , a_num -- because you select * you need all rows , d_num , dif ) AS ...
concerning
Kay -
Average usage of the CPU with get-stat
With get-stat, I can get average use of the processor in MHz using the metric usagemhz.
However, by default the maximum and minimum values in MHz is not in data points from 2 months ago. That's fine if I want to just average, but I also need average peak values. The average maximum CPU usage is possible with powerCLI?
The thing is that when you have found these averages and you do that a day or a week of a data value is not enough to really give you a true picture - you need 2 - 3 months. Can Haw I achieve this with PowerCLI?
1. you can easily adapt the cmdlet Get - VM to produce the result for 1 or a limited set of the virtual machine
For example:
Get-VM-name MyVM | Select...
Returns the result for 1 computer virtual called MyVM
If you do
Get-VM-name my * | Select...
It returns results for all virtual machines whose name begins with "My".
2. that's because Select-Object generates a hash table, and by default PowerShell displays like that hash tables.
To get only the value real exchange the last select like this
...
} | Select AvgCPUMhz - ExpandProperty
...
-
create the database with Oracle Client link
Hello together,
on my machine Windows 7 with Oracle Client installed 12.0.1.0, I'm trying to create a database link to a database server, which runs on Oracle Standard Edition1 11.2.0.2.
When I connect to sqlplus on the client with "sqlplus/nolog" and type the command:
SQL > create SID of the database link
connect to the user identified by passwd
using "tnsnames.ora connection."
I have a SP2-0640: not connected. OK, it is clear, because I use sqlplus with option/nolog. But client-side normally I have no database, where I can connect. So I think, there is no user, or?
The database to which I want to connect is located in tnsnames.ora.
Generally: Is it possible to use the Oracle Client to create a database link? Maybe there's another way to do this?
A big thank you and best regards,
David
You don't seem to understand the concept of a database link.
A database link connects two databases. Not a client and a database.
You need to link up in a data source to a target database.
The only thing you need is a client of sqlplus in sqlplus client, you need to connect to the source database.
If you can't connect to the source database, you must present the statement to someone.
Sybrand Bakker
Senior Oracle DBA
-
Create the table with the environment variables
Hi all
When an event occurs, I would create a table by a planning procedure.
I can create a table with these last or similar syntax:
create table % s_ %t in select acme_ * from a;
I would use this syntax because this event could be spend more time per day and so I can check.
is this possible?
Thank you very much
Ciao
AlbertoAlbertofro wrote:
Hi all
When an event occurs, I would create a table by a planning procedure.
I can create a table with these last or similar syntax:create table % s_ %t in select acme_ * from a;
I would use this syntax because this event could be spend more time per day and so I can check.
is this possible?Thank you very much
Ciao
AlbertoTo dynamically create a table, you must use EXECUTE IMMEDIATE. If you want your table to be padded with timestamp name you can do it with the function TO_CHAR and SYSDATE.
An example
execute immediate 'create table acme_' || to_char(sysdate, 'DDMMYYYYHH24MISS') || ' as select * from a';
Maybe you are looking for
-
SP4600 and Question Wifi power control.
Hi, I recently acquired this camera to replace an ageing sat4000. I did a new install of w98se (don't ask, will she be better fits a couple of programs I need to run...) I did the last update of the BIOS, installed power saver Inc. utilities, but I h
-
Please, anyone can help as I don't know what to do? I am running Vista to the Windows Welcome pageI am the administrator and I have no other computers attached to my laptop?I use the same USB port to connect to internet, but recently, I had to try an
-
Anyone know how to get rid of this line that just appeared on my screen
-
Windows 7 64 bit not found SysMenu.dll
I get the error message below when working under Windows 7 64-bit. "There was a problem starting. C:'PROGRA~1/common~1/system/SysMenu.dll ". The specified module could not be found. » All updates of widows were carried out from July 1, 2014. Have al
-
Arround a wonderful gentlerman of your warming suppourt June 21 advanced team in India loged in my computer and started the process of unlocking me Real Player and Film of the Photo as well and window frreeing my computer to its State frozen close. H