Algorithm in PL/SQL
I have a table that contains versions of a tool installed in the format
1.0.2
1.0.3
1.0.3.1
1.0.4
1.0.4.1
1.0.4.2
I want a digital equivalent of these versions, 1.0.3.1 is a version of 1.0.3 sup
Its digital equivalent must follow the rule below
that is numeric (1.0.3) < numeric (1.0.3.1) < numeric (1.0.4).
This must be done using PL/SQL, there should be an algorithm for it
Not necessarily to provide the exact code, the pseudo-code / logical is also welcome
I'm on 11g
Mehdi says:
More, that the versions can be alphanumeric also just one condition
as 1.0.2a.3
It will not be as 1.0.2ab.3 - there will be just one character
And you didn't think that this little piece of overtaking has been important to mention at the beginning?
If you examine the word characters in it, then you need something that determines that under the versions without an alpha come before (or after, if you like the choice belongs to you) with the alphas.
So, suppose that those without alphas come before those with alphas, we don't have to look at the characters ascii values. You are indicating that the alphas will be just something like a to z, so if we assume that no void alpha versions have a space character, we know that a space is ascii 32 and highlight alphas...
SQL > ed
A written file afiedt.buf1 with t as (select ' 1.0.2' like worm from dual union all)
2. Select '1.0.3' across double Union
3. Select "1.0.3.1" any double Union
4 Select "1.0.3a.1" of all the double union
5 Select ' 1.0.3.2» of any union double
6 select ' 1.0.4' throughout Union double
7 select ' 1.0.4.1» of any union double
8 select ' 1.0.4.2' double
9 )
10-
11 - the end of test data
12-
13. Select worm
14, nvl (regexp_substr (ver2,'[^.] +', 1, 1) '000').
15 nvl (regexp_substr (ver2,'[^.] +', 1, 2), "000").
16 nvl (regexp_substr (ver2,'[^.] +' 1, 3), "000").
NVL 17 (regexp_substr (ver2,'[^.] +' 1, 4), "000") as order_value
18 in (select worm, regexp_replace ('00' | regexp_replace(ver||))) e ',' [(0-9])\.','\1.'),'(\.)','\100') as t ver2)]
19 * order by 2
SQL > /.ORDER_VALUE WORM
-------- ------------------------------
1.0.2 001 000 002 000
1.0.3 001 000 003 000
1.0.3.1 001 000 003 001
1.0.3.2 001 000 003 002
1.0.3a.1 a 001 000 003, 001
1.0.4 001 000 004 000
1.0.4.1 001 000 004 001
1.0.4.2 001 000 004 0028 selected lines.
So, now the order of the data is based on strings rather than numbers.
So that allows you to compare versions using esityksen < versionb="" or="" versiona=""> versionB, I personally believe that it bad practice to compare strings using operators of numerical range... even if it does not work.
In this case I would probably go for a version that includes the alphas according to their values in the value ascii digital overall... something like...
SQL > ed
A written file afiedt.buf1 with t as (select ' 1.0.2' like worm from dual union all)
2. Select '1.0.3' across double Union
3. Select "1.0.3.1" any double Union
4 Select "1.0.3a.1" of all the double union
5 Select ' 1.0.3.2» of any union double
6 select ' 1.0.4' throughout Union double
7 select ' 1.0.4.1» of any union double
8 select ' 1.0.4.2' double
9 )
10-
11 - the end of test data
12-
13. Select worm
14, (ascii (upper (p4_a))-32) +.
p4_n 15 * 100 +.
16 (ascii (upper (p3_a))-32) * 10000 +.
17 p3_n * 1000000 +.
18 (ascii (upper (p2_a))-32) * 100000000 +.
19 p2_n * + 10000000000
20 (ascii (upper (p1_a))-32) * 1000000000000 +.
21 p1_n * 100000000000000 as num_value
22 in (select worm
23, nvl (regexp_substr (regexp_substr (worm, "[^.]"))) +', 1, 1),'[0-9] +'), '0') as p1_n
24, nvl (regexp_substr (regexp_substr (worm, "[^.]"))) +', 1, 1), "[a - z] (+')(,' ') as p1_a.
25, nvl (regexp_substr (regexp_substr (worm, "[^.]"))) +', 1, 2),'[0-9] +'), '0') as p2_n
26, nvl (regexp_substr (regexp_substr (worm, "[^.]"))) +', 1, 2), "[a - z] (+')(,' ') as p2_a"
27, nvl (regexp_substr (regexp_substr (worm, "[^.]"))) +'1, 3),'[0-9] +'), '0') as p3_n
28, nvl (regexp_substr (regexp_substr (worm, "[^.]"))) +' 1, 3), "[a - z] (+')(,' ') as p3_a"
29, nvl (regexp_substr (regexp_substr (worm, "[^.]"))) +'1, 4),'[0-9] +'), '0') as p4_n
30, nvl (regexp_substr (regexp_substr (worm, "[^.]"))) +' 1, 4), "[a - z] (+')(,' ') as p4_a"
31 t)
32 * order by 2
SQL > /.
NUM_VALUE WORM
-------- -----------------------------
1.0.2 100000002000000
1.0.3 100000003000000
1.0.3.1 100000003000100
1.0.3.2 100000003000200
1.0.3A.1 100000003330100
1.0.4 100000004000000
1.0.4.1 100000004000100
1.0.4.2 100000004000200
8 selected lines.
It is what allows from 0-99 for the digital part of each version of sub as 0-99 for the ascii value of the alpha character (I subtracted 32 in my code just to make it not alphanumeric subversions have a value of 0 for the alpha part, and using the STEM is not really necessary, because I subtract 32) , brings just the ascii values to a lower level, so there is less danger of having an ascii value of more than 99.
Tags: Database
Similar Questions
-
Hello
I'm writing the Luhn-10 algorithm in the SQL (Oracle 10 g). I tried it with reference query below, but it does not work for me. I want to know all of the values where the check digit is 0.
SELECT mod (ROUND (val + 5,-1) - val, 10)
DE)
SELECT SUM (CASE WHEN MOD (val2, 2) = 1 THEN)
BOX WHEN val * 2 > 10 THEN (val * 2) - 9
Else Val * 2 END
ELSE VAL END) val
DE)
SELECT TO_NUMBER (SUBSTR ('378282246310005 ', rownum, 1)) val, val2 rownum
of the double
CONNECT BY LEVEL < = LENGTH('378282246310005')
order by 2 desc));
Note:-I am able to do this in PL/SQL procedures and functions, however, would be very happy to do this in the SQL query
Logical \Practices\Mod10 said that every 2nd digit on the right on the left should have doubled (or multiply by 2) and the figure has doubled if more than 10, then we need to subtract 9. Finally the sum of all the digits will be divided by 10.
Thanks and greetingsdbuser wrote:
Hi JAC,For a number as below, it returns the value of 4500000000004314 negative, 5500000000000012 etc which are valid numbers as per the
http://www.ee.unb.ca/cgi-bin/Tervo/Luhn.pl?N=5500000000000012
OK, I was left right incorrectly... It takes just to correct to left?
SQL> with t as 2 (select level lv,to_number(substr(to_char(5500000000000012),level*-1,1)) d 3 from dual 4 connect by level <= length(5500000000000012) ) 5 select mod(sum( 6 case when mod(lv,2)= 0 then 7 case when d>= 5 then (d*2)-9 8 else d*2 end 9 else d end),10) d1 10 from t; D1 ---------- 0 SQL> with t as 2 (select level lv,to_number(substr(to_char(1245879256),level*-1,1)) d 3 from dual 4 connect by level <= length(1245879256) ) 5 select mod(sum( 6 case when mod(lv,2)= 0 then 7 case when d>= 5 then (d*2)-9 8 else d*2 end 9 else d end),10) d1 10 from t; D1 ---------- 9
Published by: JAC on April 30, 2012 10:07
-
Loading of several BLOBs with PLSQL - thank you
Last week, I posted a question ( in desperation asking if any body had a good tutorial to load several blobs.) An answer back to google, I deserved that Mustafa. I did a search and found useful information by Google the word "DBMS_LOB" thank you Billy for the tip. From there, I was able to write an anonymous block that has accomplished what I need, and then asked me to put it in a package, I didn't write a package in some time and must admit to be very rusty on this point, but with the help of a number of you, Toon and Massimiliano (correct use of a Type declaration? ) I was able to get this operational thing.
By way of give something back instead of asking questions all the time, I have included a script below which shows how I approached the group transfer of records with a BLOB column using an external csv file.
Preparation
1. place a number of documents (I used pdf) in the directory specified by ULOAD_DIR.
2. create a csv file and enter the following text. This can be done by copying the following folders in a Notepad and then file naming EXTERNAL_DATA.csv.
3 run the following script to create objects:sketch_a.pdf,application/pdf sketch_b.pdf,application/pdf sketch_c.pdf,application/pdf sketch_d.pdf,application/pdf sketch_e.pdf,application/pdf sketch_f.pdf,application/pdf sketch_g.pdf,application/pdf sketch_h.pdf,application/pdf sketch_i.pdf,application/pdf
4. run the following code:CONNECT SYSTEM/password@XE CREATE DIRECTORY UPLOAD_DIR AS 'C:\temp'; GRANT READ ON DIRECTORY UPLOAD_DIR TO SCHEMA; GRANT WRITE ON DIRECTORY UPLOAD_DIR TO SCHEMA; CONNECT user/password@XE -- CREATE TABLES CREATE TABLE TARGET_TABLE ( FILENAME VARCHAR2(4000) , MIME_TYPE VARCHAR2(4000) , BLOB_CONTENT BLOB ); CREATE TABLE EXTERNAL_TABLE ( FILENAME VARCHAR2(128) , MIME_TYPE VARCHAR2(4000) ) ORGANIZATION EXTERNAL ( type oracle_loader DEFAULT directory UPLOAD_DIR access parameters ( records delimited by newline NOBADFILE NOLOGFILE fields terminated by ',' missing field values are null ) location (UPLOAD_DIR:'EXTERNAL_DATA.csv') ) reject limit unlimited; -- CREATE SPECIFICATION CREATE OR REPLACE PACKAGE bulk_upload_pkg AS -- DECLARE TYPE type get_fbt_bulk_upload_rec_type IS record ( filename external_table.filename%TYPE , mime_type external_table.mime_type%TYPE ); -- DECLARE CURSOR CURSOR c_get_fbt_bulk_upload RETURN get_fbt_bulk_upload_rec_type; -- DECLARE PROCEDURE PROCEDURE bulk_upload_prc ( p_rec OUT get_fbt_bulk_upload_rec_type , p_blob OUT BLOB , p_srcfile OUT BFILE ); END bulk_upload_pkg; / -- CREATE BODY CREATE OR REPLACE PACKAGE BODY bulk_upload_pkg AS CURSOR c_get_fbt_bulk_upload RETURN get_fbt_bulk_upload_rec_type IS SELECT filename , mime_type FROM external_table; PROCEDURE bulk_upload_prc ( p_rec OUT get_fbt_bulk_upload_rec_type , p_blob OUT BLOB , p_srcfile OUT BFILE ) IS BEGIN OPEN c_get_fbt_bulk_upload; LOOP FETCH c_get_fbt_bulk_upload INTO p_rec; EXIT WHEN c_get_fbt_bulk_upload%NOTFOUND; DBMS_LOB.CreateTemporary(p_blob, TRUE); DBMS_LOB.Open(p_blob, dbms_lob.Lob_ReadWrite); p_srcfile := Bfilename('UPLOAD_DIR', p_rec.filename); DBMS_LOB.FileOpen (p_srcfile, dbms_lob.File_ReadOnly); DBMS_LOB.LoadFromFile(p_blob, p_srcfile, DBMS_LOB.GetLength(p_srcfile)); INSERT INTO fmbsite.TARGET_TABLE ( filename , mime_type , blob_content ) VALUES ( p_rec.filename , p_rec.mime_type , EMPTY_BLOB() ); UPDATE fmbsite.TARGET_TABLE SET blob_content = p_blob WHERE filename LIKE p_rec.filename; DBMS_LOB.FileClose(p_srcfile); COMMIT; END LOOP; IF c_get_fbt_bulk_upload%isopen THEN CLOSE c_get_fbt_bulk_upload; END IF; END bulk_upload_prc; END bulk_upload_pkg; /
5 take a look at the table named TARGET_TABLE, it must contain the attributes in the CSV file and content the UPLOAD_DIR BLOBDECLARE P_REC FMBSITE.BULK_UPLOAD_PKG.GET_FBT_BULK_UPLOAD_REC_TYPE; P_BLOB BLOB; P_SRCFILE BFILE; BEGIN BULK_UPLOAD_PKG.BULK_UPLOAD_PRC ( P_REC => P_REC , P_BLOB => P_BLOB , P_SRCFILE => P_SRCFILE ); END;
See you soon
BenHey Benton, congratulations for your solution. But my feeling is that you did in a job hard way!. You can load your PDF as BLOB in an external table directly! See the demo.
It's my pdf filesC:\Saubhik\Assembly\Books\Algorithm>dir *.pdf Volume in drive C has no label. Volume Serial Number is 6806-ABBD Directory of C:\Saubhik\Assembly\Books\Algorithm 08/16/2009 02:11 PM 1,208,247 algorithms.pdf 08/17/2009 01:05 PM 13,119,033 fci4all.com.Introduction_to_the d_Analysis_of_Algorithms.pdf 09/04/2009 06:58 PM 30,375,002 sedgewick-algorithms.pdf 3 File(s) 44,702,282 bytes 0 Dir(s) 7,474,593,792 bytes free C:\Saubhik\Assembly\Books\Algorithm>
It's my folder with which I'll load the pdf as BLOB files
C:\Saubhik\Assembly\Books\Algorithm>type mypdfs.txt Algorithms.pdf,algorithms.pdf Sedgewick-Algorithms.pdf,sedgewick-algorithms.pdf C:\Saubhik\Assembly\Books\Algorithm>
Now the actual code
SQL> /* This is my directory object */ SQL> CREATE or REPLACE DIRECTORY saubhik AS 'C:\Saubhik\Assembly\Books\Algorithm'; Directory created. SQL> /* Now my external table */ SQL> /* This table contains two columns. 1.pdfname contains the name of the file DOC> and 2.pdfFile is a BLOB column contains the actual pdf*/ SQL> CREATE TABLE mypdf_external (pdfname VARCHAR2(50),pdfFile BLOB) 2 ORGANIZATION EXTERNAL ( 3 TYPE ORACLE_LOADER 4 DEFAULT DIRECTORY saubhik 5 ACCESS PARAMETERS ( 6 RECORDS DELIMITED BY NEWLINE 7 BADFILE saubhik:'lob_tab_%a_%p.bad' 8 LOGFILE saubhik:'lob_tab_%a_%p.log' 9 FIELDS TERMINATED BY ',' 10 MISSING FIELD VALUES ARE NULL 11 (pdfname char(100),blob_file_name CHAR(100)) 12 COLUMN TRANSFORMS (pdfFile FROM lobfile(blob_file_name) FROM (saubhik) BLOB) 13 ) 14 LOCATION('mypdfs.txt') 15 ) 16 REJECT LIMIT UNLIMITED; Table created. SQL> SELECT pdfname,DBMS_LOB.getlength(pdfFile) pdfFileLength 2 FROM mypdf_external; PDFNAME PDFFILELENGTH -------------------------------------------------- ------------- Algorithms.pdf 1208247 Sedgewick-Algorithms.pdf 30375002 SQL>
Now, you can very easily use this table for any operation. Even to your loading in another table!
-
Original title: Details of the cipher suites?
Can someone please guide me what combinations encryption algorithm is compatible for MS SQL Windows Server 2012 2012. ??
Thank you
Hello
Your question is beyond the scope of this community.
Please repost your question in the SQL Server TechNet Forums.
https://social.technet.Microsoft.com/forums/SQLServer/en-us/home?category=SQLServer
TechNet Server forums.
http://social.technet.Microsoft.com/forums/WindowsServer/en-us/home?category=WindowsServer
See you soon.
-
PL/SQL implementation of algorithm of backpack without terminals?
Hello world
I am currently working on an algorithm to find the best possible combination according to a lower cost for > = necessary quantity (it's much a similar to a backpack boundless algorithm). For example, if 100 pieces are necessary since the given pool stores (see the data in the table below), I have to come up with a best possible combination. So, in this example, the best choice would be to pull the store_id (A, B, C). I'm currently experimenting with a limited record set 20 who, according to my approach (ie the brute force) who would SELECT (POWER (2.20)) FROM DUAL; 1048576 * 20 iterations and it takes more than 30 seconds using pure PL/SQL. Some information more I play a few checks to see if one store has a required amount then choose the store and out else make a comparison of cross join assuring that the store_id even are not attached then finally if nothing bothers me the quantity required then I'll for a brute force approach. If there is a best way to short circuit the third stage or all have a similar problem and came up with a BETTER solution, please let me know. He could help me and probably many others (SQL approach is available but not PL/SQL). I tried to look for something similar online but has never been able to find any implementation of PL/SQL of the algorithm of bag backpack.
store_id available_qty cost_per_unit
A 43 1.93 B 34 2.01 C 27 2.12 D 24 2.18 E 24 2.18 F 24 2.18
Table script and insert above instructions
DROP TABLE available_qty;
CREATE TABLE available_qty (store_id VARCHAR2 (1) PRIMARY KEY,)
available_qty NUMBER,
cost_per_unit NUMBER);
INSERT INTO available_qty)
store_id,
available_qty,
cost_per_unit)
VALUES ('A',
43,
1.93);
INSERT INTO available_qty)
store_id,
available_qty,
cost_per_unit)
VALUES ('B',
34,
2.01);
INSERT INTO available_qty)
store_id,
available_qty,
cost_per_unit)
VALUES ('C',
37 M
2.12);
INSERT INTO available_qty)
store_id,
available_qty,
cost_per_unit)
VALUES (',)
24,
2.18);
INSERT INTO available_qty)
store_id,
available_qty,
cost_per_unit)
VALUES ('E',
24,
2.18);
INSERT INTO available_qty)
store_id,
available_qty,
cost_per_unit)
VALUES ('F',
24,
2.18);
COMMIT;
The package that I put in place (I took ideas from multiple sources and come to this, just so that everyone knows)
CREATE or REPLACE PACKAGE get_available_qty
IS
TYPE available_qty_typ IS RECORD (store_id VARCHAR2 (1))
available_qty NUMBER,
cost_per_unit NUMBER,
best_combo_flag VARCHAR2 (1));
TYPE available_qty_nt IS TABLE OF THE available_qty_typ;
TYPE available_qty_aat IS TABLE OF THE available_qty_typ
INDEX BY PLS_INTEGER;
FUNCTION get_best_combo (p_qty_required NUMBER)
RETURN available_qty_nt
IN PIPELINE;
END;
/
CREATE or REPLACE PACKAGE get_available_qty BODY
AS
FUNCTION get_best_combo (p_qty_required NUMBER)
RETURN available_qty_nt
PIPELINED
IS
get_available_qty_nt get_available_qty.available_qty_nt
: = get_available_qty.available_qty_nt ();
-Local subprogramme
FUNCTION get_required_qty
RETURN available_qty_nt
IS
v_qty NUMBER: = 0;
v_cost_per_unit NUMBER: = 0;
V_cost_per_unit1 NUMBER: = 0;
v_best_store_id VARCHAR2 (4000) DEFAULT NULL;
v_best_store_id_combo VARCHAR2 (4000);
is_qty_available BOOLEAN DEFAULT FALSE;
is_first_run BOOLEAN DEFAULT TRUE;
v_assign_store_id_flag DBMS_UTILITY.uncl_array;
v_table_length directory.
-Local subprogramme nested
FUNCTION return_null
RETURN available_qty_nt
IS
BEGIN
get_available_qty_nt. Delete;
RETURN get_available_qty_nt;
END;
BEGIN
SELECT aq.*,
"N' best_combo_flag
LOOSE COLLECTION get_available_qty_nt
Of available_qty aq;
FOR indx IN 1... get_available_qty_nt. COUNTING LOOP
v_qty: = v_qty + get_available_qty_nt (indx) .available_qty;
END LOOP;
-If the total available quantity is less than the required quantity can return null
IF v_qty > = p_qty_required THEN
is_qty_available: = TRUE;
ON THE OTHER
get_available_qty_nt: = return_null();
END IF;
-The sub condition will run when the available quantity > = necessary quantity
IF is_qty_available THEN
-Check if any single store has available!
FOR rec IN 1... get_available_qty_nt. COUNTING LOOP
IF get_available_qty_nt (rec) .available_qty > = p_qty_required THEN
IF (v_cost_per_unit > get_available_qty_nt (rec) .cost_per_unit) THEN
v_cost_per_unit: = .cost_per_unit get_available_qty_nt (CRE);
v_best_store_id_combo: = .store_id get_available_qty_nt (CRE);
ELSIF (v_cost_per_unit = 0) THEN
v_cost_per_unit: = .cost_per_unit get_available_qty_nt (CRE);
v_best_store_id_combo: = .store_id get_available_qty_nt (CRE);
END IF;
END IF;
END LOOP;
-Reset local variables
IF v_best_store_id_combo IS NOT NULL THEN
is_qty_available: = FALSE;
ON THE OTHER
v_cost_per_unit: = 0;
v_best_store_id_combo: = NULL;
END IF;
-If above condition does not then execute a combination of Cartesian product comparison
IF is_qty_available THEN
BECAUSE me in 1... get_available_qty_nt. COUNTING LOOP
v_qty: = 0;
v_cost_per_unit1: = 0;
FOR j IN 1... get_available_qty_nt. COUNTING LOOP
IF (get_available_qty_nt (i) .store_id! = get_available_qty_nt (j) .store_id) THEN
v_qty: = get_available_qty_nt (i) .available_qty
+ get_available_qty_nt (j) .available_qty;
v_cost_per_unit1: = get_available_qty_nt (i) .cost_per_unit
+ get_available_qty_nt (j) .cost_per_unit;
IF v_qty > = p_qty_required THEN
IF (v_cost_per_unit! = 0)
AND v_cost_per_unit1 < v_cost_per_unit) THEN
v_cost_per_unit: = v_cost_per_unit1;
v_best_store_id_combo: = get_available_qty_nt (i) .store_id
|| ','
|| get_available_qty_nt (j) .store_id;
ELSIF v_cost_per_unit = 0 THEN
v_cost_per_unit: = v_cost_per_unit1;
v_best_store_id_combo: = get_available_qty_nt (i) .store_id
|| ','
|| get_available_qty_nt (j) .store_id;
END IF;
END IF;
END IF;
END LOOP;
END LOOP;
-Reset local variables
IF v_best_store_id_combo IS NOT NULL THEN
is_qty_available: = FALSE;
ON THE OTHER
v_cost_per_unit: = 0;
v_cost_per_unit1: = 0;
v_best_store_id_combo: = NULL;
END IF;
-Carry out all possible combinations (Brute Force approach)
IF is_qty_available THEN
BECAUSE me in 1... POWER (2, get_available_qty_nt.) (COUNT) - 1 LOOP
v_qty: = 0;
v_best_store_id: = NULL;
v_cost_per_unit: = 0;
FOR j IN 1.get_available_qty_nt. COUNTING LOOP
IF BITAND (i, POWER (2, j - 1))! = 0 THEN
v_qty: = v_qty + get_available_qty_nt (j) .available_qty;
v_best_store_id: = v_best_store_id | get_available_qty_nt (j) .store_id | ',';
v_cost_per_unit: = (v_cost_per_unit + get_available_qty_nt (j) .cost_per_unit);
END IF;
END LOOP;
IF (v_qty > = p_qty_required) THEN
IF is_first_run THEN
v_cost_per_unit1: = v_cost_per_unit;
is_first_run: = FALSE;
END IF;
IF (v_cost_per_unit < = v_cost_per_unit1) THEN
v_best_store_id_combo: = RTRIM (v_best_store_id, ",");
v_cost_per_unit1: = v_cost_per_unit;
END IF;
END IF;
END LOOP;
END IF;
END IF;
END IF;
-Make a list for the allocation of the Pavilion
DBMS_UTILITY.comma_to_table (list = > v_best_store_id_combo,)
Many = > v_table_length,
tab = > v_assign_store_id_flag);
FOR k in 1... v_assign_store_id_flag. COUNTING LOOP
FOR l IN 1... get_available_qty_nt. COUNTING LOOP
IF get_available_qty_nt (l) .store_id = v_assign_store_id_flag (k) THEN
get_available_qty_nt (l) .best_combo_flag: = 'Y ';
END IF;
END LOOP;
END LOOP;
RETURN get_available_qty_nt;
END;
BEGIN
get_available_qty_nt: = get_required_qty();
BECAUSE me in 1... get_available_qty_nt. COUNTING LOOP
PIPE ROW (get_available_qty_nt (i));
END LOOP;
RETURN;
END;
END get_available_qty;
-When you call the function, it returns the result back with indicators updated for stores with the most profitable combination!
SELECT *.
TABLE (get_available_qty.get_best_combo (100))
ORDER BY best_combo_flag DESC;
The best combination for 100 items stores are marked "Y".
store_id available_qty cost_per_unit best_combo_flag
A 43 1.93 THERE B 34 2.01 THERE C 27 2.12 THERE D 24 2.18 N E 24 2.18 N F 24 2.18 N SELECT *.
TABLE (get_available_qty.get_best_combo (70))
ORDER BY best_combo_flag DESC;
The best combination of store that will make up 70 or more items are marked "Y".
store_id available_qty cost_per_unit best_combo_flag
A 43 1.93 THERE B 34 2.01 THERE E 24 2.18 N D 24 2.18 N F 24 2.18 N C 27 2.12 N Sorry, this seems to be a problem trivial backpack to me, since the 'size' different weighted units is the same.
Then you can simply use a greedy algorithm, taking the cheaper units first.
This could easily be done using analytical functions.
The magic number here is 100. It can be replaced by a parameter or variable binding.
To make it more unambigous in two stores have the same costs, you can extend the order by the analytical function with the value.
Select
store_id
available_qty
cost_per_unit
case
When nvl (sum (available_qty) (cost_per_unit order
lines between unlimited and 1 preceding)
0)
< 100="" then="">
another "n".
end best_combo_flag
of available_qty
order of cost_per_unit, store_id
STORE_ID AVAILABLE_QTY COST_PER_UNIT BEST_COMBO_FLAG A 43 1.93 THERE B 34 2.01 THERE C 27 2.12 THERE F 24 2.18 N D 24 2.18 N E 24 2.18 N Post edited by: chris227
-
sql/PLSQL algorithm: is a rectangle filled with the other rectangles
Hello
I have 2 tables: T1 and T2:
FromPeriod, ToPeriod are positive whole number without decimal point.with T1 as (select 2 FromPeriod, 4 ToPeriod, 10 FromSum, 12 ToSum from dual) select * from t1; with T2 as (select 1 FromPeriod, 2 ToPeriod, 9 FromSum, 5 ToSum from dual union all select 1 FromPeriod, 3 ToPeriod, 9 FromSum, 4 ToSum from dual union all select 2 FromPeriod, 5 ToPeriod, 9 FromSum, 11 ToSum from dual union all select 2 FromPeriod, 5 ToPeriod, 11 FromSum, 12 ToSum from dual) select * from t2;
FromSum, ToSum are positive numbers can have the comma.
Table T1 contains unique in the columns 'FromPeriod-ToPeriod' points, that means that is there is a record where "FromPeriod-ToPeriod" = [2-4], then it is certainly not rendered as "FromPeriod-ToPeriod" = [1-4] keys wich [2-4] period, such a thing is not possible in table P1, it contains only unique periods that do not touch. Then the records with periods [2-4], [5-6] are ok in there.
But table T2 allows periods affecting somehow. You can see that T2 contains "FromPeriod-ToPeriod" = [1-2] and also [1-3] that touch each other.
We can look at the two tables T1 and T2 as rectangles where X - axis is the values of the axes and the "FromPeriod-ToPeriod" is [FromSum, ToSum].
I need sql/plsql algorithm that returns true if the rectangle of table T1 is discovered/filled with rectangles in table T2. If the rectangle in T1 is completely filled or even more filled than necessary, then algorithm should return true. If even a small neighborhood in rectangle T1 is not filled by rectangles in T2, then the algorithm must return false.
As see you in the sample data, T1 has a rectangle: [2-4; 10-12] T2 contains 4 mentions that fill/overdraw this area defined by T1. So for the moment the algorithm must return true.
I do not know how to write effective elsewhere such algorithm, can you help me?
--
At the moment I only came with such algorithm/query:
Test1: this test should return true:
I takes as input the T1 table horizontal axes (2, [4]) and research data table T2 that affect this horizontal axes, also the value axes is compared. But how then? There are 2 files, but it can give 10 stores overlap in the periods and amounts. How to determine now that rectange T1 is filled?--query: is rectangle [2-4;10-12] filled? -Yes. with T2 as (select 1 FromPeriod, 2 ToPeriod, 9 FromSum, 5 ToSum from dual union all select 1 FromPeriod, 3 ToPeriod, 9 FromSum, 4 ToSum from dual union all select 2 FromPeriod, 5 ToPeriod, 9 FromSum, 11 ToSum from dual union all select 2 FromPeriod, 5 ToPeriod, 11 FromSum, 12 ToSum from dual) select * from t2 where (2 <= ToPeriod and 4 >= FromPeriod) -- x-axes overlapping and (10 <= ToSum and 12 >= FromSum)--y-axes overlapping ;--2 rows -- 2 5 9 11 2 5 11 12
Test2: This case should return false:--query: is rectangle [2-4;10-12] filled? -No. with T2 as (select 1 FromPeriod, 2 ToPeriod, 9 FromSum, 4 ToSum from dual union all select 1 FromPeriod, 3 ToPeriod, 9 FromSum, 4 ToSum from dual union all select 2 FromPeriod, 4 ToPeriod, 9 FromSum, 11 ToSum from dual union all select 2 FromPeriod, 5 ToPeriod, 13 FromSum, 13 ToSum from dual) select * from t2 where (2 <= ToPeriod and 4 >= FromPeriod) -- x-axes overlapping and (10 <= ToSum and 12 >= FromSum)--y-axes overlapping ;--1 row. 2 4 9 11
Charles,
I see 2 choices, but none is likely to evolve very well. The first can be with SQL - subdivision T1 into unit squares and see if everything not covered by T2:
with T1 as (select 2 FromPeriod, 4 ToPeriod, 10.1 FromSum, 12 ToSum from dual) , T1X as (select (FromPeriod+level)-1 as Period from T1 connect by level <= (ToPeriod-FromPeriod)+1) , T1Y as (select (FromSum+level*.01)-.01 as Summ from T1 connect by level <= (ToSum-FromSum+.01)/.01) , T1XY as (select Period,Summ from T1X,T1Y) ,T2 as (select 1 FromPeriod, 2 ToPeriod, 9.99 FromSum, 10.1 ToSum from dual--satisfies sub-region [(2,2);(10.1,10.1)] union all select 1 FromPeriod, 2 ToPeriod, 9.99 FromSum, 10.11 ToSum from dual--now satisfied sub-regions: [(2,2);(10.1,10.11) union all select 2 FromPeriod, 2 ToPeriod, 10 FromSum, 12.01 ToSum from dual--now satisfied sub-regions: [(2,2);(10.1,12) union all select 3 FromPeriod, 4 ToPeriod, 10 FromSum, 11.99 ToSum from dual--now satisfied sub-regions: [(2,2);(10.1,12)],[(3,4);(10,11.99)] union all select 4 FromPeriod, 4 ToPeriod, 10 FromSum, 13 ToSum from dual--now satisfied sub-regions: all filled, return true ) select Period,Summ from T1XY where not exists ( select 1 from T2 where T2.FromPeriod<=T1XY.Period and T2.ToPeriod>=T1XY.Period and T2.FromSum<=T1XY.Summ and T2.ToSum>=T1XY.Summ ) ;
The second option is more inspiring you described, using a recursive algorithm to subdivide the T1 into small rectangles for each rectangle in T2. For example:
X(1)={[a,b;c,d]} Y={[e,f;g,h];[i,j;k,l]} X(2)={[a,e;c,g];[e,f;c,g];[f,b;c,g];[a,e;g,h];[f,b;g,h];[a,e;h,d];[e,f;h,d];[f,b;h,d]} or X(2)={[a,b;c,g];[a,b;h,d];[a,e;c,d];[f,b;c,d]} -- this gives some overlap, but fewer rectangles and the algorithm still works. You would have to refine it to handle partial overlaps correctly, then drop areas that don't have a positive area. If X(2) becomes empty then it is fully covered. It might be most efficient to sort T2 in order of descending area.
Kind regards
Bob -
Office distance, MSSQL and TLS 1.0 and RC4 encryption algorithms
Currently, SSL Labs suggests that SSL RC4 encryption algorithms are low, and that to always mitigate the attack of the BEAST in older clients, TLS 1.0 can be disabled.
I've read the threads which set out that MS SQL server had problems when SSL 3.0 and TLS 1.0 have been disabled, and also this turning off TLS 1.0 would break Remote Desktop (which this thread seems State requires TLS 1.0 and RC4 ciphers: https://msdn.microsoft.com/en-us/library/aa383015%28v=vs.85%29.aspx)
See also:
- https://TechNet.Microsoft.com/en-us/magazine/ff458357.aspx and
- https://social.technet.Microsoft.com/forums/en-us/e2b22dad-bb0c-4059-BEEC-6673783ab777/remote-desktop-stopped-working-after-disabling-SSL-20-and-TLS-10
Is it possible to have a Windows Server 2012, which is fully patched, rely on a plu TLS encryption algorithm versions than 1.0 and the MCG (or other)?
If the answer is that TLS 1.0 and RC4 must be enabled for authentication of network layer, can offer you a better order of practical cipher who would score high enough on ssl labs?
SSL3.0 and TLS 1.0 can be turned off the coast and have always start MS SQL 2012 (not configured to use SSL connections/sql ssl certificate)?
Thanks for any input that you are able to give.
This issue is beyond the scope of this site and must be placed on Technet or MSDN
-
Change to AES256 encryption algorithm
Hello
RDBMS - 11.2.0.3
We have about 40 tablespaces encrypted using AES128. We need to chage AES256 encryption algorithm.
Would like to know if any body he sings? How? What are the effort involved?
concerning
Concerning
http://docs.Oracle.com/CD/E11882_01/network.112/e40393/asotrans.htm#ASOAG620
"......... You cannot encrypt an existing table. However, you can import data in a tablespace that is encrypted by using the Oracle Data Pump utility. You can also use SQL commands, such as
CREATE TABLE...AS SELECT...
orALTER TABLE...MOVE...
to move the data in an encrypted tablespace. TheCREATE TABLE...AS SELECT...
command allows you to create a table to an existing table. TheALTER TABLE...MOVE...
command is used to move a table in encrypted storage space... » -
How to update table pl SQL by using the loop
Assuming I don't have only one table: members_tbl which columns are: SN, FN, DB, IDDBL, FLAG, DBLCRIT
I need to update the table if certain conditions are OK with this algorithm:
id_dup: = 1;
(I, 1 to Nrow (members_tbl)) THEN
{
((I + 1) J to Nrow (members_tbl)) THEN
{
IF (members_tbl (i) .iddbl IS NULL) THEN
members_tbl (i) .iddbl: = id_dup
IF (((members_tbl (i). DB is members_tbl (j). DB)
AND (UTL_MATCH.jaro_winkler_similarity (members_tbl (i). SN, members_tbl (j). (SN) > 80)
AND (UTL_MATCH.jaro_winkler_similarity (members_tbl (i). FN, members_tbl (j). FN) > 80))
AND (members_tbl (j) .iddbl IS NULL)) THEN
{
members_tbl (j) .iddbl: = id_dup;
members_tbl (i) .flag: = 1;
members_tbl (j) .flag: = 1;
members_tbl (i) .dblcrit: = 1;
members_tbl (j) .dblcrit: = 1;
}
}
id_dup: = id_dup + 1;
}
Is there a way to write this algorithm in a pl/sql procedure? I'm relatively new to PL/SQL, and I've never written a stored procedure.
IDDBL is a NUMBER yet, there may be several duplicate rows. How you expect store multiple values in a single issue?
SQL > select m.idm
2, m.sname
3, m.fname
4, m.dbirth
5, listagg (m2.idm, ',') Group (order of m2.idm) as dups
members_tbl 6 m
7 left join external members_tbl m2 (m.idm! = m2.idm)
8 and m.dbirth = m2.dbirth
9 and utl_match.jaro_winkler_similarity (m.sname, m2.sname) > 80
10 and utl_match.jaro_winkler_similarity (m.fname, m2.fname) > 80
11 )
Group m.idm 12, m.sname, m.fname, m.dbirth
13.
IDM SNAME FNAME DBIRTH DUPS
---------- -------------------- -------------------- --------------- --------------------
BOLOREY JEANNE 05/11/1955 126 125 223
126 BOLLOREY JEANNE 05/11/1955 125 223
153 BALORE GIANNE 05/11/1955
223 ABOLLOREYY JEANNE 05/11/1955 125 126
225 RELIABLE MARINE 25/04/1963 228 230
228 LOW MARYANE 25/04/1963 225 230
LOW 230 SAILOR 25/04/1963 225 228
235 LIPARK JACQLINE 20/12/1939 237
236 ILIPARC JACQUELYNE 20/12/1939 237
237 LIPARC JACQUELHINE 20/12/1939 235 236
240 RINTET MALIKA 08/07/1954
241 GRISION RAUGER 26/10/1931 242-245
ROGER 10/26/1931 241 GRISION 242
245 GRESION RAUJER 26/10/1931 24114 selected lines.
-
Oracle Sql Developer is very slow
Hello
I ' have a big problem with SQL developer. We have a lot of databases on the connections.xml (about 1600 databases Oracle) file. When we start SQL developer, it took about 10 minutes to open. Can what solutions we use to open this application more quickly?
We have already tried to add this line to the sqldeveloper.conf file:
AddVMOption - Sqldev.tnsping = false
But we see no change.
We must have a solution to fix this problem because 10 minutes is much much time to work properly.
What makes it truly Developer SQL in start up to put so much time?
Best regards.
A bug has been noted, as stated in the post 15 of this discussion. That's the good news, because there was no prior bug in the system for that matter.
There is a performance problem, of course, since the additional startup due to connections time more seems to increase exponentially, rather than (at most) linearly as could be expected. In other words, on my system...
1. 23 connections takes no extra time measurable.
2. 575 connections takes 13 seconds.
3. 1150 connections takes 53 seconds.
4. you claim that 1600 connections on your system takes about 10 minutes.
The bug will be reviewed by the developer and probably a better algorithm can be used, or the treatment in question may be delayed or run lazily so it won't slow down the startup. I don't know when this will happen, however. If you need urgently, you can follow up with Oracle Support to get a bug associated client id, track progress and present evidence for why it should have priority.
Kind regards
GarySQL development team
-
ADF security with SQL authentication
Hello
I'm new in the adf and weblogic. I use weblogic built-in jdev 12 c 12.1.2.
I set up the security in my weblogic using this blog.
http://adfgouravtkiet.blogspot.com/2012/07/Configuring-ADF-security-using-database.html
It is configured successfully. But after you configure when I restart my weblogic server, it will fail to start. This is stack strace.
< 16 April 2014 17:46:33 hours CEST > < error > < security > < BEA-090870 > < the domain 'myrealm' could not be loaded: weblogic.security.service.SecurityServiceException: com.bea.common.engine.ServiceInitializationException: java.lang.NullPointerException.
weblogic.security.service.SecurityServiceException: com.bea.common.engine.ServiceInitializationException: java.lang.NullPointerException
at weblogic.security.service.CSSWLSDelegateImpl.initializeServiceEngine(CSSWLSDelegateImpl.java:341)
at weblogic.security.service.CSSWLSDelegateImpl.initialize(CSSWLSDelegateImpl.java:220)
at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.InitializeServiceEngine(CommonSecurityServiceManagerDelegateImpl.java:1812)
at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.initializeRealm(CommonSecurityServiceManagerDelegateImpl.java:447)
at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.loadRealm(CommonSecurityServiceManagerDelegateImpl.java:845)
Truncated. check the log file full stacktrace
Caused by: com.bea.common.engine.ServiceInitializationException: java.lang.NullPointerException
at com.bea.common.engine.internal.ServiceEngineImpl.findOrStartService(ServiceEngineImpl.java:365)
at com.bea.common.engine.internal.ServiceEngineImpl.findOrStartService(ServiceEngineImpl.java:315)
at com.bea.common.engine.internal.ServiceEngineImpl.lookupService(ServiceEngineImpl.java:257)
at com.bea.common.engine.internal.ServicesImpl.getService(ServicesImpl.java:72)
at weblogic.security.service.internal.WLSIdentityServiceImpl.initialize(WLSIdentityServiceImpl.java:46)
Truncated. check the log file full stacktrace
Caused by: java.lang.NullPointerException
at weblogic.security.providers.authentication.shared.DBMSUtils.verifyHashAlgorithmUsable(DBMSUtils.java:43)
at weblogic.security.providers.authentication.DBMSSQLAuthenticatorDelegateImpl.validateConfiguration(DBMSSQLAuthenticatorDelegateImpl.java:167)
to weblogic.security.providers.authentication.DBMSSQLAuthenticatorDelegateImpl. < init > (DBMSSQLAuthenticatorDelegateImpl.java:77)
at weblogic.security.providers.authentication.DBMSAuthenticatorDelegateImpl.getInstance(DBMSAuthenticatorDelegateImpl.java:459)
at weblogic.security.providers.authentication.DBMSSQLAuthenticationProviderImpl.initialize(DBMSSQLAuthenticationProviderImpl.java:55)
Truncated. check the log file full stacktrace
>
< 16 April 2014 17:46:33 hours CEST > < opinion > < security > < BEA-090082 > < security initialization using security realm myrealm. >
< 16 April 2014 17:46:33 hours CEST > < critical > < WebLogicServer > < BEA-000362 > < server failed. Reason:
There are 1 nested errors:
weblogic.security.service.SecurityServiceRuntimeException: security services [Security: 090399] not available
at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.doBootAuthorization(CommonSecurityServiceManagerDelegateImpl.java:921)
at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.initialize(CommonSecurityServiceManagerDelegateImpl.java:1058)
at weblogic.security.service.SecurityServiceManager.initialize(SecurityServiceManager.java:873)
at weblogic.security.SecurityService.start(SecurityService.java:148)
at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:295)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:254)
>
< 16 April 2014 17:46:33 hours CEST > < opinion > < WebLogicServer > < BEA-000365 > < Server state changed to FAILED. >
< 16 April 2014 17:46:33 hours CEST > < error > < WebLogicServer > < BEA-000383 > < is not an essential service. The server shuts itself down. >
< 16 April 2014 17:46:33 hours CEST > < opinion > < WebLogicServer > < BEA-000365 > < Server state has changed to FORCE_SHUTTING_DOWN. >
Stopping Server Derby...
Derby server stopped.
Process is complete.
[End of IntegratedWebLogicServer.]
SQL authentication is configured using a data source. If I change the name of blind in weblogic in the config.xml file data source, he throws exception but able to start the server. can any body help to what he's trying to find the data source before inilizing it. Here is my file config.xml
<? XML version = "1.0" encoding = "UTF - 8"? >
"" "< domain xmlns ="http://xmlns.oracle.com/weblogic/domain"xmlns:sec ="http://xmlns.oracle.com/weblogic/security"xmlns:wls ="http://xmlns.oracle.com/weblogic/security/wls"" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi: schemaLocation = "http://xmlns.oracle.com/weblogic/security/xacml http://xmlns.oracle.com/weblogic/security/xacml/1.0/xacml.xsd http://xmlns.oracle.com/weblogic/security/providers/passwordvalidator http://xmlns.oracle.com/weblogic/security/providers/passwordvalidator/1.0/passwordvalidator.xsd http://xmlns.oracle.com/oracleas/schema/11/jps/weblogic/providers http://xmlns.oracle.com/weblogic/1.0/security.xsd http://xmlns.oracle.com/weblogic/domain http://xmlns.oracle.com/ WebLogic/1.0/Domain.xsd http://xmlns.oracle.com/weblogic/security http://xmlns.oracle.com/weblogic/1.0/security.xsd http://xmlns.oracle.com/weblogic/security/wls http://xmlns.oracle.com/weblogic/security/wls/1.0/wls.xsd' > '.
< name > DefaultDomain < / name >
field < version > 12.1.2.0.0 < / domain-version >
> security configuration <
< name > DefaultDomain < / name >
< domain >
< sec: authentication - provider xsi: type = "wls:sql - authenticatorType" >
db_user < sec: name > < / sec: name >
< sec: control - flag > SUFFICIENT < / sec: control - flag >
< wls: data-source-name >workdayDS< / wls: data-source-name >
< wls:plaintext - passwords-activated > true < / wls:plaintext - passwords-enabled >
< wls:sql - get-users-Word of past > SELECT PASSWORD FROM WORKDAY_USERS WHERE username =? < / wls:sql - get-users-Word of past >
< wls:sql - user - exists > SELECT name from USER OF WORKDAY_USERS WHERE username =? < / wls:sql - user - exists >
< wls:sql - list-members-groups > short_name SELECT OF WORKDAY_user_role_grants g, workday_roles r, workday_users u WHERE g.usr_id = AND g.rle_id = r.id AND u.username u.id =? < / wls:sql - list-members-groups >
< wls:sql - list-users > SELECT USER FROM WORKDAY_USERS WHERE name LIKE USER name? < / wls:sql - list-users >
< wls:sql - get-user-description > SELECT DISPLAY_NAME FROM WORKDAY_USERS WHERE username =? < / wls:sql - get-user-description >
< wls:sql - list-groups > SELECT SHORT_NAME FROM WORKDAY_ROLES WHERE SHORT_NAME AS? < / wls:sql - list-groups >
< wls:sql - group - exists > SELECT SHORT_NAME WORKDAY_ROLES WHERE SHORT_NAME =? < / wls:sql - group - exists >
< wls:sql - East-members > SELECT u.username OF WORKDAY_user_role_grants g, WORKDAY_users u WHERE u.id = g.usr_id AND rle_id = (SELECT id FROM WORKDAY_roles WHERE short_name =?) AND usr_id = (SELECT id FROM WORKDAY_users WHERE username =?) < / wls:sql - is-member >
< wls:sql - get-group-description > SELECT name FROM workday_roles WHERE the short_name =? < / wls:sql - get-group-description >
< wls:password - algorithm > < / wls:password - algorithm >
< wls:password - style > PLAINTEXT < / wls:password - style >
< wls:sql - create-user > INSERT INTO WORKDAY_USERS (USERNAME, PASSWORD, DISPLAY_NAME) VALUES (?,?,?) < / wls:sql - create-user >
< wls:sql - user-delete > DELETE FROM WORKDAY_USERS WHERE username =? < / wls:sql - remove-user >
< wls:sql - remove group memberships > DELETE FROM WORKDAY_user_role_grants WHERE rle_id = (SELECT id FROM workday_roles WHERE short_name =?) OR usr_id = (SELECT id FROM workday_users WHERE username =?) < / wls:sql - remove group memberships >
< wls:sql - set-user-description > UPDATE WORKDAY_USERS SET DISPLAY_NAME =? WHERE USERNAME =? < / wls:sql - set-user-description >
< wls:sql - set-user-word of past > UPDATE WORKDAY_USERS SET PASSWORD =? WHERE USERNAME =? < / wls:sql - set-user-word of past >
< wls:sql - create group > VALUES INSERT INTO WORKDAY_ROLES (id, short_name, name) (ROLES_SEQ. NEXTVAL,?,?) < / wls:sql - create group >
< wls:sql - set-group-description > UPDATE workday_roles SET name =? WHERE short_name =? < / wls:sql - set-group-description >
< wls:sql - Add-Member-to-group > INSERT INTO workday_user_role_grants (id, rle_id, usr_id) VALUES (workday_user_role_grants_seq. NEXTVAL, (SELECT id FROM workday_roles WHERE short_name =?), (SELECT id FROM workday_users WHERE username =?)) < / wls:sql - Add-Member-to-group >
< wls:sql - remove-member-of-group > DELETE FROM workday_user_role_grants WHERE rle_id = (SELECT id FROM workday_roles WHERE short_name =?) AND usr_id = (SELECT id FROM workday_users WHERE username =?) < / wls:sql - remove-member-of-group >
< wls:sql - group-delete > DELETE FROM WORKDAY_ROLES WHERE short_name =? < / wls:sql - remove group >
< wls:sql - delete-Group-members > DELETE FROM workday_user_role_grants WHERE rle_id = (SELECT id FROM workday_roles WHERE short_name =?) < / wls:sql - remove group member >
< wls:sql - list-group-members > SELECT username FROM workday_user_role_grants g, workday_roles r, u workday_users WHERE g.usr_id = AND g.rle_id = r.id AND r.short_name u.id =? AND u.username AS? < / wls:sql - list-group-members >
< / sec: authentication - provider >
< sec: authentication - provider xsi: type = "wls:default - authenticatorType" >
< sec: name > DefaultAuthenticator < / sec: name >
< / sec: authentication - provider >
"< sec: authentication - provider xmlns:prov ="http://xmlns.oracle.com/oracleas/schema/11/jps/weblogic/providers"xsi: type =" prov:trust - service-identity-asserterType ">"
Trust Service identity Asserter < sec: name > < / sec: name >
< / sec: authentication - provider >
< sec: authentication - provider xsi: type = "wls:default - identity-asserterType" >
< sec: name > DefaultIdentityAsserter < / sec: name >
< dry: active-type > AuthenticatedUser < / dry: active-type >
< / sec: authentication - provider >
"< sec: role - Mapper xmlns:xac ="http://xmlns.oracle.com/weblogic/security/xacml"xsi: type =" xac:xacml - role-mapperType ">"
< sec: name > XACMLRoleMapper < / sec: name >
< / sec: role - Mapper >
"< sec: authorizer xmlns:xac ="http://xmlns.oracle.com/weblogic/security/xacml"xsi: type =" xac:xacml - authorizerType ">"
< sec: name > XACMLAuthorizer < / sec: name >
< / sec: authorizer >
< sec: adjudicator xsi: type = "wls:default - adjudicatorType" >
< sec: name > DefaultAdjudicator < / sec: name >
< / sec: adjudicator >
< sec: credential - Mapper xsi: type = "wls:default - credential-mapperType" >
< sec: name > DefaultCredentialMapper < / sec: name >
< / sec: credential - Mapper >
< sec: cert - path-provider xsi: type = "wls:web - logic-cert-path-providerType" >
< sec: name > WebLogicCertPathProvider < / sec: name >
< / sec: cert - path-supplier >
< sec: cert - road-builder > WebLogicCertPathProvider < / sec: cert - road-builder >
< sec: name > myrealm < / sec: name >
"< sec: password - validator = xmlns:pas"http://xmlns.oracle.com/weblogic/security/providers/passwordvalidator"xsi: type =" not: System-Password - validatorType ">"
< sec: name > SystemPasswordValidator < / sec: name >
< not: min - password - > 8 length < / not: min - password - length >
< not: min-digital - or - special-characters > 1 < / not: min-digital - or - special characters >
< / sec: password - validator >
< / domain >
< domain >
< sec: authentication - provider xsi: type = "wls:sql - authenticatorType" >
db_user < sec: name > < / sec: name >
< sec: control - flag > OPTIONAL < / sec: control - flag >
< / sec: authentication - provider >
< s: deploy-credential-mapping-ignored > true < / sec: deploy-credential-mapping-ignored >
RDBMS < sec: name > < / sec: name >
< / domain >
field < default > myrealm < / default domain >
< credentials encrypted > {ESA} oiXGiKafJRTHRLy3teTxciHGGJde23frXWjmnQAK2qQIuRYhySgd6oh/ZsnHQK1u99KboPN4Tjo5uS6tg37hufUPCJIdgDAhAOjBEZHVTXFc4YwQmZ6jdCpqlqEjUOkK < / encrypted credential >
WebLogic < node-Manager-user name > < / node-Manager-user name >
{ESA} < node-Manager-password - encrypted > dPzCkXm4Z8SaMVCroCwFXEIvbz/FTMroi8W/aDM7blA = < / node-Manager-password encrypted >
< use-kss-for-demo > true < / use-kss-for-demo >
< / security configuration >
< Server >
< name > DefaultServer < / name >
< ssl >
< name > DefaultServer < / name >
< enabled > true < / enabled >
< Listening port >
8102
< / Listen-port >
< two - way ssl compatible > true < / two - way compatible ssl >
< / ssl >
< Listening port >
8101
< / Listen-port >
> web server <
< name > DefaultServer < / name >
< log-server-web >
< name > DefaultServer < / name >
< elf fields > date time cs-method ctx-ctx - sc-status cs - uri DIN ecid < / elf fields >
<-log file format > extended < / format of log file-->
< / Web-server log >
< / web server >
BRP1LAP16 < listen-address > < / listen-address >
< tunneling-enabled > true < / tunnel-enabled >
<-diagnosis-server configuration >
< name > DefaultServer < / name >
< diagnosis-context-activated > true < / diagnosis-context-enabled >
< / config-diagnosis-server >
defaultCoherenceCluster < consistency cluster-system-resource > < / coherence-cluster-system-resources >
< / Server >
< incorporated-ldap >
< name > DefaultDomain < / name >
< credentials encrypted > {ESA} WRTXOv5WcAtcIZFA7g9azU4v/ogflkbFEN1TAdhhGbU6R7RiiSfLaouE6fgnkjRg < / encrypted credential >
< / embedded-ldap >
configuration < version > 12.1.2.0.0 < / configuration-version >
< app deployment >
State-management-provider-memory-rar < name > < / name >
DefaultServer < target > < / target >
RAR < module-type > < / module-type >
C:/Oracle12c/middleware/Oracle_Home/oracle_common/modules/com.Oracle.State-management.State-management-provider-memory-RAR-impl_12.1.2.rar < source path > < / source-path >
DDOnly <-security model dd > < / security-dd-model >
> mode staged < nostage < / scene-mode implementation >
< / app-deployment >
< app deployment >
DMS Application #11.1.1.1.0 < name > < / name >
DefaultServer < target > < / target >
war of < module-type > < / module-type >
C:/Oracle12c/middleware/Oracle_Home/oracle_common/modules/Oracle.dms_12.1.2/DMS.war < source path > < / source-path >
< deployment-order > 5 < / order of deployment >
DDOnly <-security model dd > < / security-dd-model >
> mode staged < nostage < / scene-mode implementation >
< / app-deployment >
< app deployment >
< name > wsil-wls #12.1.2.0.0 < / name >
DefaultServer < target > < / target >
ear of < module-type > < / module-type >
C:/Oracle12c/middleware/Oracle_Home/oracle_common/modules/com.Oracle.WebServices.FMW.WSIL-WLS-impl_12.1.2.ear < source path > < / source-path >
< deployment-order > 5 < / order of deployment >
DDOnly <-security model dd > < / security-dd-model >
> mode staged < nostage < / scene-mode implementation >
< / app-deployment >
< app deployment >
< name > coherence-transaction-rar < / name >
DefaultServer < target > < / target >
RAR < module-type > < / module-type >
< source path - > C:/Oracle12c/Middleware/Oracle_Home/oracle_common /... /Coherence/lib/Coherence-transaction.rar < / source-path >
DDOnly <-security model dd > < / security-dd-model >
> mode staged < nostage < / scene-mode implementation >
< / app-deployment >
< app deployment >
< name > wsm - h < / name >
DefaultServer < target > < / target >
ear of < module-type > < / module-type >
C:/Oracle12c/middleware/Oracle_Home/oracle_common/modules/Oracle.WSM.pm_12.1.2/WSM-pm.ear < source path > < / source-path >
< deployment-order > 5 < / order of deployment >
DDOnly <-security model dd > < / security-dd-model >
> mode staged < nostage < / scene-mode implementation >
< / app-deployment >
< Library >
[email protected] oracle.sdp.client # < name > < / name >
DefaultServer < target > < / target >
C:/Oracle12c/middleware/Oracle_Home/oracle_common/modules/Oracle.SDP.client_12.1.2/sdpclient.jar < source path > < / source-path >
DDOnly <-security model dd > < / security-dd-model >
> mode staged < nostage < / scene-mode implementation >
< / Library >
< Library >
[email protected] oracle.pwdgen # < name > < / name >
DefaultServer < target > < / target >
C:/Oracle12c/middleware/Oracle_Home/oracle_common/modules/Oracle.pwdgen_12.1.2/pwdgen.jar < source path > < / source-path >
DDOnly <-security model dd > < / security-dd-model >
> mode staged < nostage < / scene-mode implementation >
< / Library >
< Library >
[email protected] owasp.esapi # < name > < / name >
DefaultServer < target > < / target >
C:/Oracle12c/middleware/Oracle_Home/oracle_common/modules/Oracle.owasp_12.1.2/OWASP-esapi.jar < source path > < / source-path >
DDOnly <-security model dd > < / security-dd-model >
> mode staged < nostage < / scene-mode implementation >
< / Library >
< Library >
[email protected] oracle.wsm.seedpolicies # < name > < / name >
DefaultServer < target > < / target >
C:/Oracle12c/middleware/Oracle_Home/oracle_common/modules/Oracle.WSM.common_12.1.2/WSM-seed-policies.jar < source path > < / source-path >
DDOnly <-security model dd > < / security-dd-model >
> mode staged < nostage < / scene-mode implementation >
< / Library >
< Library >
[email protected] odl.clickhistory # < name > < / name >
DefaultServer < target > < / target >
C:/Oracle12c/middleware/Oracle_Home/oracle_common/modules/Oracle.odl_12.1.2/clickhistory.jar < source path > < / source-path >
DDOnly <-security model dd > < / security-dd-model >
> mode staged < nostage < / scene-mode implementation >
< / Library >
< Library >
[email protected] odl.clickhistory.webapp # < name > < / name >
DefaultServer < target > < / target >
C:/Oracle12c/middleware/Oracle_Home/oracle_common/modules/Oracle.odl_12.1.2/clickhistory.war < source path > < / source-path >
DDOnly <-security model dd > < / security-dd-model >
> mode staged < nostage < / scene-mode implementation >
< / Library >
< Library >
< name > oracle.jrf.system.filter < / name >
DefaultServer < target > < / target >
C:/Oracle12c/middleware/Oracle_Home/oracle_common/modules/Oracle.jrf_12.1.2/system-filters.war < source path > < / source-path >
DDOnly <-security model dd > < / security-dd-model >
> mode staged < nostage < / scene-mode implementation >
< / Library >
< Library >
[email protected] oracle.jsp.next # < name > < / name >
DefaultServer < target > < / target >
C:/Oracle12c/middleware/Oracle_Home/oracle_common/modules/Oracle.jsp_12.1.2/ojsp.jar < source path > < / source-path >
DDOnly <-security model dd > < / security-dd-model >
> mode staged < nostage < / scene-mode implementation >
< / Library >
< Library >
< name > oracle.dconfig - infra #[email protected] < / name >
DefaultServer < target > < / target >
C:/Oracle12c/middleware/Oracle_Home/oracle_common/modules/Oracle.dConfig-infra_12.1.2.jar < source path > < / source-path >
DDOnly <-security model dd > < / security-dd-model >
> mode staged < nostage < / scene-mode implementation >
< / Library >
< Library >
< name > orai18n-adf #[email protected] < / name >
DefaultServer < target > < / target >
C:/Oracle12c/middleware/Oracle_Home/oracle_common/modules/Oracle.nlsgdk_12.1.2/orai18n-ADF.jar < source path > < / source-path >
DDOnly <-security model dd > < / security-dd-model >
> mode staged < nostage < / scene-mode implementation >
< / Library >
< Library >
[email protected] oracle.adf.dconfigbeans # < name > < / name >
DefaultServer < target > < / target >
jar of < module-type > < / module-type >
C:/Oracle12c/middleware/Oracle_Home/oracle_common/modules/Oracle.ADF.dconfigbeans_12.1.2.jar < source path > < / source-path >
DDOnly <-security model dd > < / security-dd-model >
> mode staged < nostage < / scene-mode implementation >
< / Library >
< Library >
[email protected] adf.oracle.domain # < name > < / name >
DefaultServer < target > < / target >
ear of < module-type > < / module-type >
C:/Oracle12c/middleware/Oracle_Home/oracle_common/modules/Oracle.ADF.model_12.1.2/ADF.Oracle.domain.ear < source path > < / source-path >
DDOnly <-security model dd > < / security-dd-model >
> mode staged < nostage < / scene-mode implementation >
< / Library >
< Library >
[email protected] adf.oracle.businesseditor # < name > < / name >
DefaultServer < target > < / target >
war of < module-type > < / module-type >
C:/Oracle12c/middleware/Oracle_Home/oracle_common/modules/Oracle.ADF.businesseditor_12.1.2/ADF.businesseditor.war < source path > < / source-path >
DDOnly <-security model dd > < / security-dd-model >
> mode staged < nostage < / scene-mode implementation >
< / Library >
< Library >
[email protected] oracle.adf.management # < name > < / name >
DefaultServer < target > < / target >
war of < module-type > < / module-type >
C:/Oracle12c/middleware/Oracle_Home/oracle_common/modules/Oracle.ADF.management_12.1.2/ADF-management.war < source path > < / source-path >
DDOnly <-security model dd > < / security-dd-model >
> mode staged < nostage < / scene-mode implementation >
< / Library >
< Library >
[email protected] adf.oracle.domain.webapp # < name > < / name >
DefaultServer < target > < / target >
war of < module-type > < / module-type >
C:/Oracle12c/middleware/Oracle_Home/oracle_common/modules/Oracle.ADF.view_12.1.2/ADF.Oracle.domain.webapp.war < source path > < / source-path >
DDOnly <-security model dd > < / security-dd-model >
> mode staged < nostage < / scene-mode implementation >
< / Library >
< Library >
< name > jsf #[email protected]< / name >
DefaultServer < target > < / target >
war of < module-type > < / module-type >
C:/Oracle12c/middleware/Oracle_Home/oracle_common/modules/Oracle.jsf_2.1/JSF-RI-21.war < source path > < / source-path >
DDOnly <-security model dd > < / security-dd-model >
> mode staged < nostage < / scene-mode implementation >
< / Library >
< Library >
< name > jstl #[email protected] < / name >
DefaultServer < target > < / target >
war of < module-type > < / module-type >
C:\Oracle12c\Middleware\Oracle_Home\wlserver/common/deployable-libraries/JSTL-1.2.war < source path > < / source-path >
DDOnly <-security model dd > < / security-dd-model >
> mode staged < nostage < / scene-mode implementation >
< / Library >
< Library >
< name > UIX #[email protected] < / name >
DefaultServer < target > < / target >
war of < module-type > < / module-type >
C:/Oracle12c/middleware/Oracle_Home/oracle_common/modules/Oracle.uix_12.1.2/uix11.war < source path > < / source-path >
DDOnly <-security model dd > < / security-dd-model >
> mode staged < nostage < / scene-mode implementation >
< / Library >
< Library >
< name > ohw - FRC #[email protected] < / name >
DefaultServer < target > < / target >
war of < module-type > < / module-type >
C:/Oracle12c/middleware/Oracle_Home/oracle_common/modules/Oracle.help_5.0/OHW-RCF.war < source path > < / source-path >
DDOnly <-security model dd > < / security-dd-model >
> mode staged < nostage < / scene-mode implementation >
< / Library >
< Library >
< name > ohw - uix #[email protected] < / name >
DefaultServer < target > < / target >
war of < module-type > < / module-type >
C:/Oracle12c/middleware/Oracle_Home/oracle_common/modules/Oracle.help_5.0/OHW-UIX.war < source path > < / source-path >
DDOnly <-security model dd > < / security-dd-model >
> mode staged < nostage < / scene-mode implementation >
< / Library >
< Library >
[email protected] oracle.adf.desktopintegration.model # < name > < / name >
DefaultServer < target > < / target >
ear of < module-type > < / module-type >
C:/Oracle12c/middleware/Oracle_Home/oracle_common/modules/Oracle.ADF.desktopintegration.model_12.1.2/Oracle.ADF.desktopintegration.model.ear < source path > < / source-path >
DDOnly <-security model dd > < / security-dd-model >
> mode staged < nostage < / scene-mode implementation >
< / Library >
< Library >
[email protected] oracle.adf.desktopintegration # < name > < / name >
DefaultServer < target > < / target >
war of < module-type > < / module-type >
C:/Oracle12c/middleware/Oracle_Home/oracle_common/modules/Oracle.ADF.desktopintegration_12.1.2/Oracle.ADF.desktopintegration.war < source path > < / source-path >
DDOnly <-security model dd > < / security-dd-model >
> mode staged < nostage < / scene-mode implementation >
< / Library >
< Library >
[email protected] oracle.bi.jbips # < name > < / name >
DefaultServer < target > < / target >
ear of < module-type > < / module-type >
C:/Oracle12c/middleware/Oracle_Home/oracle_common/modules/Oracle.bi.presentation_12.1.2/bi-jbips-SLIB-stub.ear < source path > < / source-path >
DDOnly <-security model dd > < / security-dd-model >
> mode staged < nostage < / scene-mode implementation >
< / Library >
< Library >
[email protected] oracle.bi.composer # < name > < / name >
DefaultServer < target > < / target >
war of < module-type > < / module-type >
C:/Oracle12c/middleware/Oracle_Home/oracle_common/modules/Oracle.bi.presentation_12.1.2/bi-composer-SLIB-stub.war < source path > < / source-path >
DDOnly <-security model dd > < / security-dd-model >
> mode staged < nostage < / scene-mode implementation >
< / Library >
< Library >
[email protected] oracle.bi.adf.model.slib # < name > < / name >
DefaultServer < target > < / target >
ear of < module-type > < / module-type >
C:/Oracle12c/middleware/Oracle_Home/oracle_common/modules/Oracle.bi.presentation_12.1.2/bi-ADF-Model-SLIB.ear < source path > < / source-path >
DDOnly <-security model dd > < / security-dd-model >
> mode staged < nostage < / scene-mode implementation >
< / Library >
< Library >
[email protected] oracle.bi.adf.view.slib # < name > < / name >
DefaultServer < target > < / target >
war of < module-type > < / module-type >
C:/Oracle12c/middleware/Oracle_Home/oracle_common/modules/Oracle.bi.presentation_12.1.2/bi-ADF-view-SLIB.war < source path > < / source-path >
DDOnly <-security model dd > < / security-dd-model >
> mode staged < nostage < / scene-mode implementation >
< / Library >
< Library >
[email protected] oracle.bi.adf.webcenter.slib # < name > < / name >
DefaultServer < target > < / target >
war of < module-type > < / module-type >
C:/Oracle12c/middleware/Oracle_Home/oracle_common/modules/Oracle.bi.presentation_12.1.2/bi-ADF-WebCenter-SLIB.war < source path > < / source-path >
DDOnly <-security model dd > < / security-dd-model >
> mode staged < nostage < / scene-mode implementation >
< / Library >
<>shutdown-class
< name > DMSShutdown < / name >
DefaultServer < target > < / target >
< deployment-order > 150 < / order of deployment >
> class name < oracle.dms.wls.DMSShutdown < / class name >
< / stop-class >
<>start-class
< name > class start JPS < / name >
DefaultServer < target > < / target >
< deployment > 115 order < / order of deployment >
> class name < oracle.security.jps.wls.JpsWlsStartupClass < / class name >
< failure-is-fatal > false < / failure-is-fatal >
< charge-before-app-deployments > true < / load-front-app-deployments >
< charge-before-app-activation > true < / load-front-app-activation >
< / start class >
<>start-class
< name > JPS start after Activation class < / name >
DefaultServer < target > < / target >
< deployment-order > 160 < / order of deployment >
> class name < oracle.security.jps.wls.JpsWlsPostServiceActivationStartup < / class name >
< failure-is-fatal > false < / failure-is-fatal >
< charge-before-app-deployments > false < / load-front-app-deployments >
< charge-before-app-activation > true < / load-front-app-activation >
< / start class >
<>start-class
< name > class start WSM < / name >
DefaultServer < target > < / target >
> class name < oracle.wsm.config.WSMServerStartupShutdownProvider < / class name >
< / start class >
<>start-class
< name > class start JRF < / name >
DefaultServer < target > < / target >
< deployment > 110 order < / order of deployment >
> class name < oracle.jrf.wls.JRFStartup < / class name >
< failure-is-fatal > false < / failure-is-fatal >
< charge-before-app-deployments > true < / load-front-app-deployments >
< charge-before-app-activation > true < / load-front-app-activation >
< / start class >
<>start-class
< name > ODL-start < / name >
DefaultServer < target > < / target >
< deployment > 145 order < / order of deployment >
> class name < oracle.core.ojdl.weblogic.ODLConfiguration < / class name >
< failure-is-fatal > false < / failure-is-fatal >
< charge-before-app-deployments > true < / load-front-app-deployments >
< charge-before-app-activation > true < / load-front-app-activation >
< / start class >
<>start-class
< name > DMS-start < / name >
DefaultServer < target > < / target >
< deployment-order > 150 < / order of deployment >
> class name < oracle.dms.wls.DMSStartup < / class name >
< failure-is-fatal > false < / failure-is-fatal >
< charge-before-app-deployments > true < / load-front-app-deployments >
< charge-before-app-activation > true < / load-front-app-activation >
< / start class >
<>start-class
< name > class start context AWT Application < / name >
DefaultServer < target > < / target >
< deployment-order > 150 < / order of deployment >
> class name < oracle.jrf.AppContextStartup < / class name >
< failure-is-fatal > false < / failure-is-fatal >
< charge-before-app-deployments > true < / load-front-app-deployments >
< charge-before-app-activation > true < / load-front-app-activation >
< / start class >
<>start-class
< name > class start of Web Services < / name >
DefaultServer < target > < / target >
< deployment-order > 150 < / order of deployment >
> class name < oracle.j2ee.ws.server.WebServiceServerStartup < / class name >
< failure-is-fatal > false < / failure-is-fatal >
< charge-before-app-deployments > true < / load-front-app-deployments >
< charge-before-app-activation > true < / load-front-app-activation >
< / start class >
store < file >
< name > mds-GOSA < / name >
< Directory > store/gmds < / book >
DefaultServer < target > < / target >
< / file-store >
< name-server-admin > DefaultServer < / name of the server-admin->
< wldf-system-resources >
Module FMWDFW < name > < / name >
DefaultServer < target > < / target >
< name-file-descriptor > diagnostics/Module-FMWDFW - 2818.xml < / file-descriptor-name >
incident creates FMWDFW < description > from non-controlled Exceptions and critical errors < / description >
< / wldf-system-resources >
< jdbc-system-resources >
< name > LocalSvcTblDataSource < / name >
DefaultServer < target > < / target >
< name-file-descriptor > jdbc/LocalSvcTblDataSource - jdbc.xml < / file-descriptor-name >
< / jdbc-system-resources >
< jdbc-system-resources >
< name > opss-data-source < / name >
DefaultServer < target > < / target >
< name-file-descriptor > jdbc/opss-datasource - jdbc.xml < / file-descriptor-name >
< / jdbc-system-resources >
< jdbc-system-resources >
< name > opss-audit-viewDS < / name >
DefaultServer < target > < / target >
< name-file-descriptor > jdbc/opss-auditview - jdbc.xml < / file-descriptor-name >
< / jdbc-system-resources >
< jdbc-system-resources >
< name > opss-audit-DBDS < / name >
DefaultServer < target > < / target >
< name-file-descriptor > jdbc/opss-audit - jdbc.xml < / file-descriptor-name >
< / jdbc-system-resources >
< jdbc-system-resources >
< name > mds-GOSA < / name >
DefaultServer < target > < / target >
< name-file-descriptor > jdbc/mds-GOSA - jdbc.xml < / file-descriptor-name >
< / jdbc-system-resources >
< jdbc-system-resources >
< name > workdayDS < / name >
DefaultServer < target > < / target >
< name-file-descriptor > jdbc/workdayDS-6554 - jdbc.xml < / file-descriptor-name >
< / jdbc-system-resources >
< consistency cluster-system-resource >
< name > defaultCoherenceCluster < / name >
< name-file-descriptor > coherence/defaultCoherenceCluster - coherence.xml < / file-descriptor-name >
< / coherence-cluster-system-resources >
< / domain >
Data source that I use it is wordayDS.
I have deleted my domain name and create new ones yet to configure SQL authentication, and it works fine.
-
data type for astromical algorithms
Hello everyone.
IM using Oracle 12 g of data.
I have to face a new application where I have to develop a large number of astronomical algorithms, normally calculated them on the speed of the planets, astronomical positions and so forth.
These algorithms usually have a large number of decimal place, between 10 and 20.
So, Im trying to find the best types of data, because the accuracy is a must. And these are my doubts...
Read the tutorial of Oracle it say that the number data type contains all the other subclass of numbers. For example, as I understand it, the integer data type is only one type of data number with some restrictions.
My question is:
If I declare a variable as number, this variable will have the same accuracy as a variable declared as binary_double? For example
Declare
x number; -Without defining the decimal scale in this way, it can accept the range possible decimal
x BINARY_DOUBLE:-that class will have the same accuracy as the number of x?
What is the best way to declare these vars? by order of accuracy, storage and speed is not so important in this application.
Regards to all the world and thanks in advance.
Use the NUMBER unless you have a specific reason NOT to use it.
See the built-in data types in the doc of the SQL language
http://docs.Oracle.com/CD/B28359_01/server.111/b28286/sql_elements001.htm#i54330
2
NUMBER
[ (p
[,s
]) ]Number having precision
p
and scales
. Precisionp
may vary from 1 to 38. Wides
can vary from-84 to 127. Precision and scale are in decimal digits. ANUMBER
value requires 1 to 22 bytes. -
SQL dev. "quota exceeded... space. »
I load a data in data SQL DEV career. and run the k-means clustering algorithm. I can load the data successfully, but the model build and gives me below error.
space quota exceeded for table space 'data mining '.
How can I solve the space problems
I run k-means on these data successfully in the MDGS.
Published by: Nasiri Mahdi on April 15, 2013 23:01Hi Nasiri,
I have to assume that the table space assigned to the user account is "data mining".
It seems that the user account doesn't have an allocation of adequate space.
See the link below for more information on this type of problem.
ORA-01536: space quota exceeded for tablespace 'USERS '.
Thank you, Mark -
High memory consumption of Developer SQL 3.2.20.09.87
Hello
I have been using SQL Developer for some time and had initially had problems in the past with memory consuption high when I use this tool.
I have received and applied the advice from this forum, and while he had helped a little, the majority of high memory consumption remains a problem.
Finally, I had more time to dig around and try to isolate exactly where the problem seems to come from and here's what I found.
(* 1) * I removed functionality updates checking
(* 2) * I turned it off a lot of the extensions with the exception of Navigator DBA, SQL monitoring in real time, search bar, and extracts.
(* 3) * when I start a fresh SQL Developer Session and initiate an Oracle application connection consumes about 148 meg RAM fo
(* 4) * when I opened my Windows Task Manager and watch the memory allocated to SQL Developer, I noticed it goes back to when I move my mouse over the SQL Developer tool and when I run the menu about 5 k a second or so and the memory never came out in the system.
(* 5) * when I run a great SQL in the memory grid jumps by about 100 meg or more and will continue to do so whenever I repeat the SQL until the SQL Developer consumes about 748 meg of RAM.
(* 6) * 748 Meg of RAM seems to be the number when the SQL Developer (with an Oracle connection) is more continues to consume more and then not return memory to the system.
Is it possible to have a SQL Developer automatically clear it's using active memory without closing down then restarting him?
Why SQL Developer continues to consume memory more and more just to move your mouse or navigation in the menus?
Here is my speech in detail;
-----
Oracle SQL Developer 3.2.20.09
Version 3.2.20.09
Build a HAND - 09.87
Copyright © 2005, Oracle 2012. All rights reserved.
The IDE version: 11.1.1.4.37.59.48
Product ID: oracle.sqldeveloper
Product version: 11.2.0.09.87
Version
-------
Version of the component
========= =======
Java (TM) Platform 1.6.0_35
Oracle IDE 3.2.20.09.87
Properties
----------
Value name
==== =====
awt. Sun.awt.windows.WToolkit Toolkit
Class.Load.Environment oracle.ide.boot.IdeClassLoadEnvironment
Class.Load.log.Level CONFIG
Class.Transfer delegate
leader. Encoding Cp1252
leader. Encoding.pkg sun.io
leader. Separator.
Fake Ice.Browser.ForceGC
True Ice.Pilots.html4.ignoreNonGenericFonts
Ice.Pilots.html4.tileOptThreshold 0
IDE. True AssertTracingDisabled
IDE.bootstrap.Start 109707460930968
IDE. Build HAND - 09.87
IDE.conf C:\app\twilliams\product\11.2.0\client_3\sqldeveloper\sqldeveloper\bin\sqldeveloper.conf
IDE.config_pathname C:\app\twilliams\product\11.2.0\client_3\sqldeveloper\sqldeveloper\bin\sqldeveloper.conf
IDE. Fake DebugBuild
Fake IDE.devbuild
sqldeveloper IDE.extension.Search.Path / extensions: jdev / extensions: ide / extensions
True IDE.firstrun
IDE.java.MinVersion 1.6.0_04
3276 ide.launcherProcessId
IDE.main.Class oracle.ide.boot.IdeLauncher
IDE.patches.dir ide/lib/patches
IDE.pref.dir developer C:\Users\twilliams\AppData\Roaming\SQL
IDE.pref.dir.base C:\Users\twilliams\AppData\Roaming
IDE. Product oracle.sqldeveloper
ide.shell.enableFileTypeAssociation C:\app\twilliams\product\11.2.0\client_3\sqldeveloper\sqldeveloper\bin\sqldeveloperW.exe
IDE. Splash.Screen splash.gif
ide.startingArg0 C:\app\twilliams\product\11.2.0\client_3\sqldeveloper\sqldeveloper\bin\sqldeveloperW.exe
IDE.startingcwd C:\app\twilliams\product\11.2.0\client_3\SQLDEVELOPER\SQLDEVELOPER\BIN
IDE. User.dir developer C:\Users\twilliams\AppData\Roaming\SQL
IDE. User.dir.var IDE_USER_DIR
IDE. Work.dir developer C:\Users\twilliams\Documents\SQL
IDE. Work.dir.base C:\Users\twilliams\Documents
fake ilog.propagatesPropertyEditors
Java.awt.graphicsenv sun.awt.Win32GraphicsEnvironment
Java.awt.PrinterJob sun.awt.windows.WPrinterJob
Java.class.Path...... \ide\lib\ide-boot.jar
Java.class.version 50.0
Java.endorsed.dirs C:\app\twilliams\product\11.2.0\client_3\sqldeveloper\jdk\jre\lib\endorsed
Java.ext.dirs C:\app\twilliams\product\11.2.0\client_3\sqldeveloper\jdk\jre\lib\ext; C:\Windows\Sun\Java\lib\ext
Java.Home C:\app\twilliams\product\11.2.0\client_3\sqldeveloper\jdk\jre
Java.IO.TMPDIR c:\Temp\
Java.Library.Path C:\app\twilliams\product\11.2.0\client_3\sqldeveloper\sqldeveloper\bin; C:\Windows\Sun\Java\bin; C:\Windows\System32; C:\Windows; C:\app\twilliams\product\11.2.0\client_3\bin; C:\app\twilliams\product\11.2.0\client_3; C:\Windows\System32; C:\Windows; C:\Windows\System32\Wbem; C:\Windows\system32\WindowsPowerShell\v1.0\; C:\Program Files\Lenovo\Access Connections\. C:\Program Files\WinMerge; C:\Program logiciels\ ThinkPad;
Java.naming.Factory.initial oracle.javatools.jndi.LocalInitialContextFactory
Java.Protocol.Handler.pkgs oracle.jdevimpl.handler
Java.Runtime.Name Java (TM) SE Runtime Environment
Java.Runtime.version 1.6.0_35 - b10
Java.Specification.Name Java Platform API Specification
Java.Specification.Vendor Sun Microsystems Inc.
Java.Specification.version 1.6
Java.util.Logging.config.file logging.conf
Java.Vendor Sun Microsystems Inc.
Http://java.sun.com/ Java.Vendor.URL
Java.Vendor.URL.bug http://java.sun.com/cgi-bin/bugreport.cgi
Java.version 1.6.0_35
Java.VM.info mixed mode
Java.VM.Name machine customer of Java virtual
Java.VM.Specification.Name specification of Machine Java virtual
Java.VM.Specification.Vendor Sun Microsystems Inc.
Java.VM.Specification.version 1.0
Java.VM.Vendor Sun Microsystems Inc.
Java.VM.version 20.10 - b01
JDBC. Driver.Home /C:/app/twilliams/product/11.2.0/client_3/
JDBC. Library /C:/app/twilliams/product/11.2.0/client_3/jdbc/lib/ojdbc6.jar
Line.Separator \r\n
Oracle.Home C:\app\twilliams\product\11.2.0\client_3\sqldeveloper
true oracle.ide.util.AddinPolicyUtils.OVERRIDE_FLAG
fake oracle.jdbc.mapDateToTimestamp
of Oracle.translated.locales, are, fr, it, ja, ko, pt_BR, zh_CN, zh_TW
Oracle.xdkjava.Compatibility.version 9.0.4
orai18n. Library /C:/app/twilliams/product/11.2.0/client_3/jlib/orai18n.jar
OS. Arch x 86
OS. Name Windows 7
OS.version 6.1
Path.Separator;
con reserved_filenames, to the, prn, lpt1, lpt2, lpt3, lpt4, lpt5, lpt6, lpt7, lpt8, lpt9, com1, com2, com3, com4, com5, com6, com7, com8, com9, conin$, conout, conout$
sqldev. False debug
Sun.Arch.Data.Model 32
Sun.Boot.class.Path C:\app\twilliams\product\11.2.0\client_3\sqldeveloper\jdk\jre\lib\resources.jar; C:\app\twilliams\product\11.2.0\client_3\sqldeveloper\jdk\jre\lib\rt.jar; C:\app\twilliams\product\11.2.0\client_3\sqldeveloper\jdk\jre\lib\sunrsasign.jar; C:\app\twilliams\product\11.2.0\client_3\sqldeveloper\jdk\jre\lib\jsse.jar; C:\app\twilliams\product\11.2.0\client_3\sqldeveloper\jdk\jre\lib\jce.jar; C:\app\twilliams\product\11.2.0\client_3\sqldeveloper\jdk\jre\lib\charsets.jar; C:\app\twilliams\product\11.2.0\client_3\sqldeveloper\jdk\jre\lib\modules\jdk. Boot.jar; C:\app\twilliams\product\11.2.0\client_3\sqldeveloper\jdk\jre\classes
Sun.Boot.Library.Path C:\app\twilliams\product\11.2.0\client_3\sqldeveloper\jdk\jre\bin
Small Sun.CPU.endian
Sun.CPU.isalist pentium_pro + pentium mmx + mmx pentium i486 i386 i86 pentium_pro
Sun.Desktop windows
Sun.IO.Unicode.Encoding UnicodeLittle
Fake Sun.Java2D.ddoffscreen
Sun.JNU.Encoding Cp1252
Sun.Management.Compiler HotSpot Client compiler
Sun.OS.patch.Level Service Pack 1
User.Country U.S.
User.dir C:\app\twilliams\product\11.2.0\client_3\SQLDEVELOPER\SQLDEVELOPER\BIN
User.Home-C:\Users\twilliams
User.language en
User.Name twilliams
User.TimeZone America/Los Angeles
User.Variant
Windows.Shell.font.Languages
Extensions
----------
Name identifier Version status
==== ========== ======= ======
Check For Updates oracle.ide.webupdate 11.1.1.4.37.59.48 responsible
Oracle.ide.ceditor 11.1.1.4.37.59.48 code editor in charge
Charge of the component Palette oracle.ide.palette1 11.1.1.4.37.59.48
Data Miner oracle.dmt.dataminer 11.2.1.1.09.87 disabled by user
Support connection to database oracle.jdeveloper.db.connection 11.1.1.4.37.59.48 responsible
Charge of the object database explorers oracle.ide.db.explorer 11.1.1.4.37.59.48
Charge of oracle.ide.db of the user interface of database 11.1.1.4.37.59.48
Schema oracle.diagram framework 11.1.1.4.37.59.48 Loaded
Diagram of Javadoc Extension oracle.diagram.javadoc 11.1.1.4.37.59.48 Loaded
Diagram thumbnail oracle.diagram.thumbnail 11.1.1.4.37.59.48 Loaded
Diff/Merge oracle.ide.diffmerge 11.1.1.4.37.59.48 responsible
Extended Platform IDE oracle.javacore 11.1.1.4.37.59.48 responsible
Oracle.IDE.externaltools of external tools 11.1.1.4.37.59.48 responsible
Support oracle.ide.files 11.1.1.4.37.59.48 Loaded file
Help oracle.ide.help system 11.1.1.4.37.59.48 Loaded
Steeped in history oracle.jdeveloper.history Support 11.1.1.4.37.59.48
Charge of the Import/Export oracle.ide.importexport 11.1.1.4.37.59.48 Support
Index Migrator support oracle.ideimpl.indexing - migrator 11.1.1.4.37.59.48 Loaded
JDeveloper Runner oracle.jdeveloper.runner 11.1.1.4.37.59.48 responsible
JViews record Addin oracle.diagram.registration 11.1.1.4.37.59.48 responsible
Connect to oracle.ide.log 11.1.1.4.37.59.48 of the Loaded window
Mac OS X adapter oracle.ideimpl.apple 11.1.1.4.37.59.48 responsible
Navigator oracle.ide.navigator 11.1.1.4.37.59.48 responsible
Gallery of the object oracle.ide.gallery 11.1.1.4.37.59.48 responsible
Oracle IDE oracle.ide 11.1.1.4.37.59.48 responsible
Oracle SQL Developer oracle.sqldeveloper 11.2.0.09.87 responsible
Oracle SQL Developer - 3rd party browsers oracle.sqldeveloper.thirdparty.browsers 11.2.0.09.87 Database loaded
Oracle SQL Developer - APEX listener Administration oracle.sqldeveloper.listener 11.2.0.09.87 responsible
Oracle SQL Developer - change Mangement oracle.sqldeveloper.em_cm 11.2.0.09.87 responsible
Oracle SQL Developer - DBA Navigator oracle.sqldeveloper.dbanavigator 11.2.0.09.87 responsible
Oracle SQL Developer - database oracle.sqldeveloper.dbcart 11.2.0.09.87 basket loaded
Oracle SQL Developer - Extras oracle.sqldeveloper.extras 11.2.0.09.87 responsible
Oracle SQL Developer - file Navigator oracle.sqldeveloper.filenavigator 11.2.0.09.87 loaded
Oracle SQL Developer - missing dependencies of migration Antlr3 translator oracle.sqldeveloper.migration.translation.core_antlr3 11.2.0.09.87: oracle.sqldeveloper.migration
Oracle SQL Developer - Migration oracle.sqldeveloper.migration.application 11.2.0.09.87 migration applications disabled by user
Oracle SQL Developer - Migration Core oracle.sqldeveloper.migration 11.2.0.09.87 disabled by user
Oracle SQL Developer - DB2 migration oracle.sqldeveloper.migration.db2 11.2.0.09.87 disabled by user
Oracle SQL Developer - missing dependencies of migration DB2 translator oracle.sqldeveloper.migration.translation.db2 11.2.0.09.87: oracle.sqldeveloper.migration, oracle.sqldeveloper.migration.translation.core_antlr3
Oracle SQL Developer - Migration Microsoft Access oracle.sqldeveloper.migration.msaccess 11.2.0.09.87 disabled by user
Oracle SQL Developer - Migration Microsoft SQL Server oracle.sqldeveloper.migration.sqlserver 11.2.0.09.87 disabled by user
Oracle SQL Developer - Migration MySQL oracle.sqldeveloper.migration.mysql 11.2.0.09.87 disabled by user
Oracle SQL Developer - Migration Sybase Adaptive Server oracle.sqldeveloper.migration.sybase 11.2.0.09.87 disabled by user
Oracle SQL Developer - migration T missing dependencies - SQL Translator oracle.sqldeveloper.migration.translation.core 11.2.0.09.87: oracle.sqldeveloper.migration
Oracle SQL Developer - Migration Teradata oracle.sqldeveloper.migration.teradata 11.2.0.09.87 disabled by user
Oracle SQL Developer - missing dependencies of migration Teradata SQL Translator oracle.sqldeveloper.migration.translation.teradata_translator 11.2.0.09.87: oracle.sqldeveloper.migration, oracle.sqldeveloper.migration.translation.core
Oracle SQL Developer - Migration UI oracle.sqldeveloper.migration.translation.gui 11.2.0.09.87 translation disabled by user
Oracle SQL Developer - Object oracle.sqldeveloper.oviewer 11.2.0.09.87 browser loaded
Oracle SQL Developer - Real Time SQL Monitoring oracle.sqldeveloper.sqlmonitor 11.2.0.09.87 responsible
Oracle SQL Developer - reports oracle.sqldeveloper.report 11.2.0.09.87 responsible
Oracle SQL Developer - oracle.sqldeveloper.scheduler 11.2.0.09.87 Planner disabled by user
Oracle SQL Developer - schema browser oracle.sqldeveloper.schemabrowser 11.2.0.09.87 responsible
Oracle SQL Developer - SearchBar oracle.sqldeveloper.searchbar 11.2.0.09.87 responsible
Oracle SQL Developer - Security oracle.sqldeveloper.security 11.2.0.09.87 disabled by user
Oracle SQL Developer - extract oracle.sqldeveloper.snippet 11.2.0.09.87 responsible
Oracle SQL Developer - spatial oracle.sqldeveloper.spatial 11.2.0.09.87 disabled by user
Oracle SQL Developer - TimesTen oracle.sqldeveloper.timesten 11.2.0.09.87 disabled by user
Oracle SQL Developer - Tuning oracle.sqldeveloper.tuning 11.2.0.09.87 responsible
Oracle SQL Developer - Unit Test oracle.sqldeveloper.unit_test 11.2.0.09.87 disabled by user
Oracle SQL Developer - support to users oracle.sqldeveloper.userextensions 11.2.0.09.87 Extensions loaded
Oracle SQL Developer - spreadsheet v2 oracle.sqldeveloper.worksheet 11.2.0.09.87 responsible
Oracle SQL Developer - oracle.sqldeveloper.xmlschema 11.2.0.09.87 XML schema loaded
Oracle SQL Developer Data Modeling oracle.datamodeler 3.1.4.710 disabled by user
Data Modeler Oracle SQL Developer - reports oracle.sqldeveloper.datamodeler_reports 11.2.0.09.87 disabled by user
Debugger oracle.jdeveloper.db.debug.probe 11.1.1.4.37.59.48 Loaded PROBE
Look oracle.ide.peek 11.1.1.4.37.59.48 responsible
Storage Oracle.IDE.persistence persistent 11.1.1.4.37.59.48 loaded
Support for the property inspector oracle.ide.inspector 11.1.1.4.37.59.48
QuickDiff oracle.ide.quickdiff 11.1.1.4.37.59.48 responsible
Charge to replace by oracle.ide.replace 11.1.1.4.37.59.48
Runner oracle.ide.runner 11.1.1.4.37.59.48 load
THT oracle.ide.vhv 11.1.1.4.37.59.48 responsible
Versioning Support oracle.jdeveloper.vcs 11.1.1.4.37.59.48 disabled by the user
Support for versioning for missing dependencies of Subversion oracle.jdeveloper.subversion 11.1.1.4.37.59.48: oracle.jdeveloper.vcs
Oracle.IDE.VFS of charge virtual filesystem 11.1.1.4.37.59.48
Browser Web and Proxy oracle.ide.webbrowser 11.1.1.4.37.59.48 responsible
Load the Extension XML Editing Framework IDE oracle.ide.xmlef 11.1.1.4.37.59.48
Audit oracle.ide.audit 11.1.1.4.37.59.48 Loaded
classpath: protocol extension oracle.jdeveloper.classpath 11.1.1.0.0 Manager support
jdukshare oracle.bm.jdukshare 11.1.1.4.37.59.48 responsible
MOF - xmi oracle.mof.xmi 11.1.1.4.37.59.48 responsible
Oracle.IDE.Dependency oracle.ide.dependency 11.1.1.4.37.59.48 responsible
Oracle.IDE.Indexing oracle.ide.indexing 11.1.1.4.37.59.48 responsible
Palette2 oracle.ide.palette2 11.1.1.4.37.59.48 responsible
status oracle.ide.status 11.1.1.4.37.59.48 responsible
Thanks in advance...
Tom
Published by: ERPDude on February 28, 2013 14:46Hi Tom,
Memory consumption you observe is characteristic of the machine virtual Java and algorithm of garbage collection that he uses. There are a few tricks you can use to improve the deallocation of memory in the JAVA virtual machine. See the following topics:
Re: Reduce the footprint memory SQLDeveloper with JDK 1.7
Re: Memory leak or bad Java Garbage CollectorIn addition, it is best to follow the size of the heap of the JVM and memory via a memory profiler. The Task Manager is supposed to these exaggerate.
Kind regards
Gary
SQL development team -
Same algorithm in function and procedure so that one will be better?
Why is better to pl sql function calculates a value instead of the procedure?
If I apply the same algorithm in function and procedure while one will perform better?Siddharth Singh says:
Oracle documentationhttp://docs.Oracle.com/CD/B10500_01/AppDev.920/a96624/08_subs.htm
This:
Generally, you use a procedure to perform an action and a function to calculate a value.
Does not mean that the function are better to calculate a value, but you usually use functions to calculate a value.
Usually, a function is can be more useful if you plan to use in a query.
that is to say:SELECT myfunc(col1) from mytable;
That you can't do with a procedure. Functions are also usually limited to the returning a single value, while procedures may have several OUTPUT parameters.
Kind regards.
AlPublished by: Alberto Faenza on 21 November 2012 15:31
Maybe you are looking for
-
Someone sends me a message of viruses and a number to call
Someone sends me a message of viruses and a number to call to get rid of it. A year or two ago it's happened and I was scammed. I think that they scared me thinking, I got a virus to get my credit card number. I panicked and they paid more than $300,
-
Problems during the installation of windows on Satellite L40
my laptop toshiba satellite L40model No. PSL4CL-001001series X7061289R while I have install windows xp, it says that my hard drive not found...for windows vista, I also facing the same problem...I know that I have I need of the driver for this laptop
-
How to change default email from Outlook to Outlook Express?
I guess the subject expresses the issue. Thanks for any response. OfficeJet J4580; Windows Vista Edition Home Premium
-
Failure of password of blackBerry Smartphones
My phone does not accept my password. Is it reset a number I can call to get it?
-
To view my photos without seeing the entire photo library
I have never used a library of images, all of a sudden I can't open a single image without being sent to the library that has a bunch of pictures, but I can't even locate the one I try to open (even email). I had Windows 7 for 9 months, it just happ