two queries against aud$ with different results
Hi guys
I'm not so good with queries and it is the reason for my question:
We have active audit and we want to get the following information (monthly):
- -How many times the logon user to the database.
- -each logon to each user in a month.
For the first (1) obligation for us to have the following query:
select USERID "Cuenta", USERHOST, TERMINAL, nombres||' '||PRIMER_APELLIDO||' '||SEGUNDO_APELLIDO "WhiteList" , count(*) "TOTAL" from aud$, ab.usuarios where (ACTION# = 100) and (NTIMESTAMP# between (to_date(to_char('01092013 00:00:00'),'ddmmyyyy HH24:MI:SS')) and (to_date(to_char('30092013 23:59:00'),'ddmmyyyy HH24:MI:SS'))) and USERID = CODIGO_USUARIO(+) and USERID not in ('DBSNMP','SYSMAN') group by USERID, USERHOST, TERMINAL, nombres||' '||PRIMER_APELLIDO||' '||SEGUNDO_APELLIDO order by USERID, USERHOST, TERMINAL;
the result of this query shows like this:
Header 1 |
---|
Cuenta USERHOST TERMINAL WhiteList TOTAL -------------------- ------------------------- --------------- ---------------------------------------- ---------- ASEGUR MAQUINADIAB\SSSSS IUOOO PEPITO GARCIA GARCIA Y SOCIED 10 ASEGUR POSADASDE\MNNN4550094 MNNN4550094 PEPITO GARCIA GARCIA Y SOCIED 1 |
ASEGUR POSADASDE\YUMI YUMI PEPITO GARCIA GARCIA Y SOCIED 10
ASEGUR YUH PEPITO GARCIA GARCIA Y SOCIED 20
ASEGUR SDFRG PEPITO GARCIA GARCIA Y SOCIED 13
ASEGUR signy PEPITO GARCIA Y GARCIA SOCIED 29
Sigurd ASEGUR PEPITO GARCIA Y GARCIA SOCIED 32
ASEGUR valhalla-Legacy PEPITO GARCIA Y GARCIA SOCIED 12
ADMIN MAQUINADIAB\SSSSS IUOOO USER ADMINISTRATOR NETWORKING 3
SPRINGUSR bragi 98
SPRINGUSR hermod 59
SPRINGUSR YUH 49
Therefore, total logons per month per user.
for the second requirement, we use the tracking query:
select USERID "Cuenta", USERHOST, TERMINAL, to_char(NTIMESTAMP#,'YYYYMMDD HH24:MI:SS') "Fec Ing", nombres||' '||PRIMER_APELLIDO||' '||SEGUNDO_APELLIDO "WhiteList" --, count(*) "TOTAL" from aud$, ab.usuarios where (ACTION# = 100) and --to_char(NTIMESTAMP#,'dd-mm-yy')=to_char(sysdate-50,'dd-mm-yy') and (NTIMESTAMP# between (to_date(to_char('01062013 18:00:00'),'ddmmyyyy HH24:MI:SS')) and (to_date(to_char('30062013 23:59:00'),'ddmmyyyy HH24:MI:SS'))) and USERID = CODIGO_USUARIO(+) and USERID not in ('DBSNMP','SYSMAN') group by USERID, USERHOST, TERMINAL,to_char(NTIMESTAMP#,'YYYYMMDD HH24:MI:SS'), nombres||' '||PRIMER_APELLIDO||' '||SEGUNDO_APELLIDO order by USERID, USERHOST, TERMINAL;
Header 1 |
---|
Cuenta USERHOST Fec TERMINAL Ing white list -------------------- ------------------------- --------------- -------------------- ---------------------------------------- UTILISATEUR12 DOMINIODDD\IOIPOP IOIPOP 20130930 12:08:33 ANGEL ROBERTO GARCIA Y GARCIA S |
UTILISATEUR12 DOMINIODDD\IOIPOP IOIPOP 20130930 14:28:47 ANGEL ROBERTO GARCIA Y GARCIA S
UTILISATEUR12 DOMINIODDD\IOIPOP IOIPOP 20130930 16:24:43 ANGEL ROBERTO GARCIA Y GARCIA S
Thus, shows the opening of each session conducted per user per month.
But in the two queries, the results are different. This is not to assume that they must have the same number of logons?
I mean, if I have summarized the numbers in the TOTAL column I less that I get in the second query. Always!
could you help us?
Thank you
Hello
Why you use GROUP BY in the second query, remove it from the second query, then result will be the same
HTH
Tags: Database
Similar Questions
-
two rows of delete with different values
Hello
I wouldn't lines with the same id and have values of E and F 10258932.
I would like the following data:
But I have the following lines:A B C D E N -------- -- ------ ----- - - 10258927 1 103,35 0 10258929 3 284,85 89,52 E N 10258929 4 323,85 89,52 E N 10258930 5 478,80 91,53 E N 10258931 6 436,67 78,09 E N
Does anyone have an idea?SQL> with my_table as 2 ( 3 select '10258927' a, '1' b, '103,35' c, '0' d, NULL e from dual union all 4 select '10258928' a, '2' b, '0' c, '15,19' d, 'E' e from dual union all 5 select '10258929' a, '3' b, '284,85' c, '89,52' d, 'E' e from dual union all 6 select '10258929' a, '4' b, '323,85' c, '89,52' d, 'E' e from dual union all 7 select '10258930' a, '5' b, '478,80' c, '91,53' d, 'E' e from dual union all 8 select '10258931' a, '6' b, '436,67' c, '78,09' d, 'E' e from dual union all 9 select '10258932' a, '7' b, '784,88' c, '23,19' d, 'E' e from dual union all 10 select '10258932' a, '8' b, '100,88' c, '11,11' d, 'E' e from dual union all 11 select '10258932' a, '9' b, '300,88' c, '22,22' d, 'F' e from dual union all 12 select '10258932' a, '10' b, '468,25' c, '78,33' d, 'F' e from dual) 13 select a, b, c, d, e, no_ds from 14 ( 15 select a, b, c, d, e, 16 case when c > 0 and e != 'F' 17 then 'N' 18 end no_ds 19 from my_table) 20 where no_ds = 'N' or e is null 21 order by 1 22 / A B C D E N -------- -- ------ ----- - - 10258927 1 103,35 0 10258929 3 284,85 89,52 E N 10258929 4 323,85 89,52 E N 10258930 5 478,80 91,53 E N 10258931 6 436,67 78,09 E N 10258932 7 784,88 23,19 E N 10258932 8 100,88 11,11 E N 7 Zeilen ausgewählt. SQL>
Oh, I read the title again once: 'remove double lines with different values.
If it means that he is not specifically E and F values, but only if there is more than one distinct value, then you can do the following:with my_table as ( select '10258927' a, '1' b, '103,35' c, '0' d, NULL e from dual union all select '10258928' a, '2' b, '0' c, '15,19' d, 'E' e from dual union all select '10258929' a, '3' b, '284,85' c, '89,52' d, 'E' e from dual union all select '10258929' a, '4' b, '323,85' c, '89,52' d, 'E' e from dual union all select '10258930' a, '5' b, '478,80' c, '91,53' d, 'E' e from dual union all select '10258931' a, '6' b, '436,67' c, '78,09' d, 'E' e from dual union all select '10258932' a, '7' b, '784,88' c, '23,19' d, 'E' e from dual union all select '10258932' a, '8' b, '100,88' c, '11,11' d, 'E' e from dual union all select '10258932' a, '9' b, '300,88' c, '22,22' d, 'F' e from dual union all select '10258932' a, '10' b, '468,25' c, '78,33' d, 'F' e from dual ) -- -- end-of-test-data -- select a, b, c, d, e, num_distinct_values from ( select a, b, c, d, e, count(distinct e) over (partition by a) num_distinct_values from my_table) where num_distinct_values <= 1 order by 1 /
The county notes how the distinct non-null values in column e for each one.
Where clause then selects those with count = 0 (this is where e = null) and count = 1.
If the number is greater than 1, different values exist for this id.Choose what fits your condition ;-)
-
Interleaving of samples: two outputs analog (tables with different lengths)
CHAN AOCHANNEL1 AOCHANNEL2 AOCHANNEL1 AOCHANNEL2 .. .and so on
SAMP * * * * * * * * * * * * .............and so on
Hi guys, how could I go on the interlacing of two arrays of different lengths in a two-channel analog output?
In the illustration above, for example, I like to write 5 values in channel 1, followed a string of unique value 2 and so on...
I use DAQmx library controls to achieve this (not LabView).
I am able to write unique values each time a task is opened without any problem, I was wondering if I can interleave the berries so that values are buffered and tasks are performed with greater haste.
best regards,
Ravi
target met: I've made the following changes:
CREATION OF TASK 1
CREATION ANALOG_VO channel 1 & channel 2 in TASK 1
CONFIG. CALENDAR OF TASK 1CREATED some TENSION with SAMPLES interleaved pre
WRITING TASK 1 VALUES
TASK 1 STARTED
DAQmxCfgSampClkTiming(taskHandle1,"",SAMPLING_RATE,DAQmx_Val_Rising,DAQmx_Val_FiniteSamps,2*SAMPLE_SIZE_WX) -
Change the sequence of commands to generate two reports by USE with different names.
I have a special situation for the model of batch processing.
Each DUT consist of two distinct products that need to be tested as a single unit.
I can run every USE and generate a test for each report. -aka. The standard use case works very well.
However, we would like the records using this method. So I need a copy with a different name for each series.
The idea behind this is that we have a story running for each half of the UUT. Given that the two halves will probably never meet.
I looked at the BatchModel.seq and read some of the documentation, but I'm having a hard time to understand what is happening.
I guess the items highlighted above are where the object to measure reports are generated. However, I don't know the mechanism for giving them the names among the Options report-> report menu Pathname file or how to change between these two points in time. Also are there tricks to get the report in duplicate with a different path in this configuration.
All links to the relevant information would be useful. Thank you
Just copy these two steps and between them and the copies have another step that is just a statement. There, you can change the path of the report by setting parameters. TestSocket.ReportFilePath the new path.
Ideally what you would do, is that the client using a callback. So, your code would look like this:
Write the object to measure report
Write the report of the object to be measured (on the fly)
Define report path reminder (override in customer OR statement step)
Write the object to measure report
Write the report of the object to be measured (on the fly)
Hope this helps,
-
A Mac, two Capsules of time with different backups
I have a second gen Time Capsule, which contains my Time Machine backup. I recently bought a 5th generation Time Capsule with the intention to create a new backup, but also be able to keep intact the first.
I need to be able to release all the space of my MacBook Pro, but also want to be able to access it on the backup of the second generation of TC, but have the 5th generation TC be my new backup every day.
I was wondering how to fix this without screwing up my current data?
Any ideas would be appreciated.
You can do what you want.
Copy the sparsebundle to the old TC to the new... and rename it so it does not interfere with the backup.
Our experience has been to advise against it. Especially it wastes just space.
I need to be able to release all the space of my MacBook Pro, but also want to be able to access it on the backup of the second generation of TC, but have the 5th generation TC be my new backup every day.
If you move files to the TC 2nd Gen, they will be totally lost when the TC fails, which could be tomorrow... it should have been 5 years ago. They proved unreliable due to the overheating and poor diet.
Strongly recommend against it doing so.
Copy your files on a USB connected directly to the laptop. You can then run a backup through TM to the new TC.
The old TC is not worth including somehow.
-
Hi all
I have a digital control in a tab control. Both of them have their own events 'mouse-down' in a while loop. But when I click on the digital command, instead of raising the event of digital control only, both of these two events fired.
Maybe I can check if the mouse is in the range of digital technology to filter events, but if the window is resized, I have to recalculate the range once again.
Is there another way to do it?
I pasted the test code too.
Thank you!
Excerpts of work
Side note: I really don't like the controls on the tab and use them very rarely. And the few times I use them, it is for tabs to which I often use to select among the screws to put in a secondary school.
-
How to combine the two queries into a single
Hi gurus,
SQL > select * from v version $;
BANNER
----------------------------------------------------------------
Oracle Database 10g Release 10.2.0.4.0 - Production 64-bit
PL/SQL Release 10.2.0.4.0 - Production
CORE 10.2.0.4.0 Production
AMT for Linux: release 10.2.0.4.0 - Production
NLSRTL Version 10.2.0.4.0 - Production
SQL >
I have following two queries. How can I convert these two queries into one with the same result?
1ST QUARTER
SELECT id, $vdate, SupplierName, venddate, vid
THE SELLER
WHERE processid = 32
AND venddate is null
AND vid to (select vid from view_vid where type = 'PDX')
AND (id, $vdate) not in (select id, $vdate from vkfl_is where task_id = 55)
AND (id, $vdate) in (select id, vidate from market_data where marketed_date is null)
AND id not in (select id from location)
Q2
SELECT id, $vdate, SupplierName, venddate, vid
THE SELLER
WHERE processid = 20
AND venddate is null
AND vid to (select vid from view_vid where type = 'PBX')
AND (id, $vdate) not in (select id, $vdate from vkfl_is where task_id = 40)
AND (id, $vdate) in (select id, vidate from market_data where region_date is null)
AND id not in (select id from location)
I can the UNION queries these two, but is there some way I can write a single query that gives me the same result as above two queries?
Any help would be much appreciated
Thanks in advance
Sorry, it lack
SELECT id, $vdate, SupplierName, venddate, vid
THE SELLER
ProcessID WHERE in (32.20)
AND venddate is null
AND vid to (select vid from view_vid where type = case when processid = 32
then "PDX".
else "PBX".
end)
AND (id, $vdate) not in (select id, $vdate from vkfl_is where task_id = case when processid = 32
then 55
40 else
end)
AND (id, $vdate) in (select id, vidate from market_data cases where processid = 32)
then marketed_date
of other region_date
end to the null value
)
AND id not in (select id from location)
Concerning
Etbin
-
Two same queries but different results
I'm working on the guarantee of data from data sources Vs target.
Source and target databases are oracle. The source data are a remote database and navigate using DB_LINK.
I am running similar queries against the data source and my schema but gets different results I check the number of folders and individual service Group DC account
both are fit exactly, but for some reason any after the results of queries in different counts.
a request flowing from the source table:
Select
b.Year,
b.month,
a.serv_grp,
Count (distinct a.clnt) cnt
Of
Jay.srvrequest@bdm_link has,
(select separate year, month, first_date_of_month, last_date_of_month)
of dev.stage_3_time_dim
where year = 2011 and
b months between 3 and 7)
where
a.beg_dt < = b.last_date_of_month
and a.end_dt > = b.first_date_of_month
and a.serv_grp in ('1 ', '4', '5',' 6') and
a.stat as 'A '.
B.year group, b.month, a.serv_grp;
target request flowing from the database:
Select
b.Year,
b.month,
a.service_group_cd,
Count (distinct a.client_id) cnt
Of
Prod.stage_0_mg_serv_req has,
(select separate year, month, first_date_of_month, last_date_of_month)
of dev.stage_3_time_dim
where year = 2011 and
b months between 3 and 7)
where
a.begin_dt < = b.last_date_of_month
and a.end_dt > = b.first_date_of_month
and a.service_group_Cd in ('1 ', '4', '5',' 6') and
a.status_cd as 'A '.
B.year group, b.month, a.service_group_cd
results out of data from the source as follows:
Year month serv grp cnt
2011 3 1 78653
2011 3 4 4562
2011 3 5 166
2011 3 6 7533
2011 4 1 78327
2011 4 4 4540
2011 4 5 167
2011 4 6 7546
2011 5 1 78612
2011 5 4 4535
2011 5 5 166
2011 5 6 7544
results off-target following data:
Year month serv grp cnt
2011 3 1 49350
2011 3 4 1921
2011 3 5 26
2011 3 6 2259
2011 4 1 47727
2011 4 4 1834
2011 4 5 27
2011 4 6 2211
2011 5 1 46675
2011 5 4 1771
2011 5 5 26
2011 5 6 2116
I don't know what wrong with queries
any advice appreciated...
JayMaybe you get different results because the data are different.
Also, why the first query uses a remote table, attached to a local table? Why not 100% remote data?
-
original title: a different output for ping - an IP address
I am trying to determine the name of the computer to an IP address
When I open a command prompt in a computer (Windows XP connected to our domain) and type ping - a [IP address], I get a result
When I open a command prompt in another computer (Windows Server 2008 connected to the WORKING group) and type ping - a [IP address], I get a different result
And there are other times when ping - [IP address] will display the name of the computer on a computer (usually the Windows Server 2008), but not the other
I tried to google
1. why this happens
2. what result is correct
Please specify.
The order of DNS in Windows name resolution is as follows:
- Name of the local host (file Hosts Local generally in c:\windows\system32\drivers\etc\hosts)
- Cache Client DNS resolution
- DNS server
- Cache of NetBIOS names
- WINS server
- NetBIOS broadcasts
- File LMHosts (same location as the HOSTS file)
The reason you get different results could be because machines could be on different subnets (different results for broadcast), using a different DNS server machines or are configured for different WINS servers, or the names are already cached because of prior activity.
HTH,
JW -
Mr President.
My worm jdev is 12.2.1
How to enter two rows at the same time with different default values that only the first line to use see?
Suppose I have a table with four fields as below
"DEBIT" VARCHAR2(7) , "DRNAME" VARCHAR2(50), "CREDIT" VARCHAR2(7) , "CRNAME" VARCHAR2(50),
Now I want that when I click on a button (create an insert) to create the first line with the default values below
So if I click on the button and then validate the second row with different values is also inserted on commit.
The value of the second row are like the picture below
But the second row should be invisible. It could be achieved by adding vc in the vo.
The difficult part in my question is therefore, to add the second row with the new default values.
Because I already added default values in the first row.
Now how to add second time default values.
Concerning
Mr President
I change the code given by expensive Sameh Nassar and get my results.
Thanks once again dear Sameh Nassar .
My code to get my goal is
First line of code is
protected void doDML(int operation, TransactionEvent e) { if(operation != DML_DELETE) { setAmount(getPurqty().multiply(getUnitpurprice())); } if (operation == DML_INSERT ) { System.out.println("I am in Insert with vid= " + getVid()); insertSecondRowInDatabase(getVid(),getLineitem(),"6010010","SALES TAX PAYABLE", (getPurqty().multiply(getUnitpurprice()).multiply(getStaxrate())).divide(100)); } if(operation == DML_UPDATE) { System.out.println("I am in Update with vid= " + getVid()); updateSecondRowInDatabase(getVid(), (getPurqty().multiply(getUnitpurprice()).multiply(getStaxrate())).divide(100)); } super.doDML(operation, e); } private void insertSecondRowInDatabase(Object value1, Object value2, Object value3, Object value4, Object value5) { PreparedStatement stat = null; try { String sql = "Insert into vdet (VID,LINEITEM,DEBIT,DRNAME,AMOUNT) values " + "('" + value1 + "','" + value2 + "','" + value3 + "','" + value4 + "','" + value5 + "')"; stat = getDBTransaction().createPreparedStatement(sql, 1); stat.executeUpdate(); } catch (Exception e) { e.printStackTrace(); } finally { try { stat.close(); } catch (Exception e) { e.printStackTrace(); } } } private void updateSecondRowInDatabase(Object value1, Object value5) { PreparedStatement stat = null; try { String sql = "update vdet set AMOUNT='"+ value5+"' where VID='" + value1 + "'"; stat = getDBTransaction().createPreparedStatement(sql, 1); stat.executeUpdate(); } catch (Exception e) { e.printStackTrace(); } finally { try { stat.close(); } catch (Exception e) { e.printStackTrace(); } } }
Second line code is inside a bean method
public void addNewPurchaseVoucher(ActionEvent actionEvent) { // Add event code here... BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry(); DCIteratorBinding dciter = (DCIteratorBinding) bindings.get("VoucherView1Iterator"); RowSetIterator rsi = dciter.getRowSetIterator(); Row lastRow = rsi.last(); int lastRowIndex = rsi.getRangeIndexOf(lastRow); Row newRow = rsi.createRow(); newRow.setNewRowState(Row.STATUS_NEW); rsi.insertRowAtRangeIndex(lastRowIndex +1, newRow); rsi.setCurrentRow(newRow); BindingContainer bindings1 = BindingContext.getCurrent().getCurrentBindingsEntry(); DCIteratorBinding dciter1 = (DCIteratorBinding) bindings1.get("VdetView1Iterator"); RowSetIterator rsi1 = dciter1.getRowSetIterator(); Row lastRow1 = rsi1.last(); int lastRowIndex1 = rsi1.getRangeIndexOf(lastRow1); Row newRow1 = rsi1.createRow(); newRow1.setNewRowState(Row.STATUS_NEW); rsi1.insertRowAtRangeIndex(lastRowIndex1 +1, newRow1); rsi1.setCurrentRow(newRow1); }
And final saveUpdate method is
public void saveUpdateButton(ActionEvent actionEvent) { // Add event code here... BindingContainer bindingsBC = BindingContext.getCurrent().getCurrentBindingsEntry(); OperationBinding commit = bindingsBC.getOperationBinding("Commit"); commit.execute(); OperationBinding operationBinding = BindingContext.getCurrent().getCurrentBindingsEntry().getOperationBinding("Commit"); operationBinding.execute(); DCIteratorBinding iter = (DCIteratorBinding) BindingContext.getCurrent().getCurrentBindingsEntry().get("VdetView1Iterator");// write iterator name from pageDef. iter.getViewObject().executeQuery(); }
Thanks for all the cooperation to obtain the desired results.
Concerning
-
Hello
Oracle 11.2.0.3
We have a strange situation - using the pl/sql developer and a pc gui tool when query present at the session of $ v session INACTIVE for a sid given - also on sqlplus for INACTIVE same sid but on
Another exact same request of pc shows as ACTIVE.
What happens repeatedly with different sid.
I thought session $ v must show the same SID as active or inactive desktop client as a database table.
Someone at - he seen this before?
Thank you
When you ask anything about the database, your session will be activated as it does 'something' on the database. For example, when the user queries:
select status from v$session where osuser = 'HIMSELF_USERNAME';
It questions its own session which is 'something' on the database. So, just try it, run a query on the database using your own username as this, you will have the same results. There is no error on the data dictionary, please stop trying to think that it is a bug.
Kind regards.
-
Help to combine the two queries with dependencies
Combining two queries with dependencies:First ask: Returns USER_ID that has a type of access to a table with the OWNER (I also shoot the TLA of the USER_ID standard: ' of TLA #)Select distinct SUBSTR (DBA_USERS. Username, 2, 3) AS TLA
DBA_USERS. Username USED_ID
DBA_TAB_PRIVS. Owner OWNER
from DBA_USERS
DBA_ROLE_PRIVS
DBA_TAB_PRIVS
where DBA_USERS. Username = DBA_ROLE_PRIVS. Dealer
and DBA_USERS.default_tablespace not in ('SYSTEM', "SYSAUX")
and DBA_USERS. Username like would be %'
and DBA_ROLE_PRIVS. Granted_role = DBA_TAB_PRIVS. Dealer
and SUBSTR (DBA_USERS. Username, 2, 3) <>DBA_TAB_PRIVS. Owner
;
Example of results (red font used in the last citation):TLA USED_ID OWNER
--- ------------------------------ ------------------------------
DGTX999 GTX GRR
DGTX999 GTX ABG
DGTX999 GTX HTC
FWS DFWS999 GRR
OCN DOCN999 GRR
RHR DRHR999 DAS
ETM DETM999 DAS
FWS DFWS995 DAS
CD DCDS999 DAS
ABE DABE999 DAS
Second request: matches the USER name (same standards as above) and MACHINES (filter PC connections) and the number of connections made ofSelect DBA_USERS. Username
DBA_HIST_ACTIVE_SESS_HISTORY. Machine
COUNT (*) AS CONN_COUNT
of DBA_HIST_ACTIVE_SESS_HISTORY
DBA_USERS
where DBA_HIST_ACTIVE_SESS_HISTORY. User_id = DBA_USERS. User_id
and DBA_USERS. Username like would be %'
and DBA_HIST_ACTIVE_SESS_HISTORY. Machine not as "WINAD%\%-%".
Group of DBA_USERS. Username
DBA_HIST_ACTIVE_SESS_HISTORY. Machine
order by 1
3 desc;
Example of results (red font used in the last citation):MACHINE CONN_COUNT USERNAME
--------------- ------------------------- ----------
DFWS999 home13e0 7557
DGAM800 vu1246 37
DGAM999 vu1246 2558
DABE999 back18cb 4639
DINL888 home162f 84
DFWS999 WINDAD\OMHQ58BF 178
DCDS999 back18cb 788
DGTX999 home18c8 7
DGTX999 home13d3 62
DOCN999 vu1261 44
DFWS999 back1976 3
DCDS999 home18c8 173
DGTX999 home19c9 13
What I'd like to have (just made two first USER_IDs from the first query) (COL duplicated for each separate owner 1-4). So 3 machines and 3 owners would result in 9 lines (I could reorganize the collar and use a 'pause'):
TLA USED_ID MACHINE CONN_COUNT OWNER
--- ------------------------------ ------------------------- ---------- ------------------------------
GTX DGTX999 home13d3 62 GRR
Home18c8 GTX DGTX999 7 GRR
DGTX999 GTX home19c9 GRR 6
GTX DGTX999 home13d3 62 ABG
DGTX999 GTX home18c8 ABG 7
DGTX999 GTX home19c9 6 GBS
GTX DGTX999 home13d3 62 CTH
DGTX999 GTX HTC 7 home18c8
DGTX999 GTX home19c9 6 HTC
FWS DFWS999 home13e0 7557 GRR
FWS DFWS999 WINDAD\OMHQ58BF 178 GRR
FWS DFWS999 back1976 GRR 3
So it would be logically read: TLA as USER_ID of MACHINE, CONN_COUNT consultation times: OWNER information.Thought as only those with the necessary values. Just try this and let me know in the case of all conflicts in the output.
WITH T1 AS)
Select distinct SUBSTR (DBA_USERS. Username, 2, 3) AS TLA
DBA_USERS. Username USED_ID
DBA_TAB_PRIVS. Owner OWNER
ROWNUM RN
from DBA_USERS
DBA_ROLE_PRIVS
DBA_TAB_PRIVS
where DBA_USERS. Username = DBA_ROLE_PRIVS. Dealer
and DBA_USERS.default_tablespace not in ('SYSTEM', "SYSAUX")
and DBA_USERS. Username like would be %'
and DBA_ROLE_PRIVS. Granted_role = DBA_TAB_PRIVS. Dealer
and SUBSTR (DBA_USERS. Username, 2, 3) <> DBA_TAB_PRIVS. Owner),
() AS T2
Select DBA_USERS. Username
DBA_HIST_ACTIVE_SESS_HISTORY. Machine
COUNT (*) AS CONN_COUNT
of DBA_HIST_ACTIVE_SESS_HISTORY
DBA_USERS
where DBA_HIST_ACTIVE_SESS_HISTORY. User_id = DBA_USERS. User_id
and DBA_USERS. Username like would be %'
and DBA_HIST_ACTIVE_SESS_HISTORY. Machine not as "WINAD%\%-%".
Group of DBA_USERS. Username
DBA_HIST_ACTIVE_SESS_HISTORY. Machine
order by 1
3 desc)
SELECT T1. TLA
, T1. USED_ID
, T2. MACHINE
, T2. CONN_COUNT
, T1. OWNER
FROM T1
T2
WHERE T1. USED_ID = T2. USER NAME;
-
Why can I get two different results from the same coefficients?
I get two different results of the evaluation of the polynomial function.
For the first, I get the coefficients of a polynomial function to adapt. I feed the coefficients of the function made the function Eval Poly and get the correct 12.8582 result when I evaluate 49940.
For the second, I create constant array of values that have been returned by the polynomial Fit function (I typed in). However, I get an incorrect result of - 120.7913 when I feed the constant table the function Eval Poly when I evauate 49940.
How this can happen when I use the same values in table?
A picture of what I explained is attached.
Hi Altran,
are you sure about using the 'same '?
You compare them? Do you have (at least) set them to 17 digits display properties?
Please attach a VI instead of an image...
-
NATting even address public ip with two periods of internal investigation with different ports
Hi people,
Can I use the same public IP for two internal investigation periods different with different ports and I can even user public IP for two periods of different internal investigation with the same ports
static (inside, outside) tcp 115.248.153.252 192.168.22.19 6303 6303 netmask 255.255.255.255
static (inside, outside) tcp 115.248.153.252 http 192.168.22.19 http netmask 255.255.255.255
static (inside, outside) tcp 115.248.153.252 http 192.168.22.20 http netmask 255.255.255.255
static (inside, outside) 115.248.153.252 tcp https 192.168.22.20 https netmask 255.255.255.255
static (inside, outside) tcp 115.248.153.252 192.168.22.21 6303 6303 netmask 255.255.255.255
static (inside, outside) tcp 115.248.153.252 http 192.168.22.22 http netmask 255.255.255.255
Concerning
Vesta
"Everybody is genius." But if you judge a fish by its ability to climb on a tree, he will live his entire life, believing that this is stupid. "No, you cannot use the same public ip address NAT on two internal IP address different using the same port.
static (inside, outside) tcp 115.248.153.252 192.168.22.19 6303 6303 netmask 255.255.255.255
static (inside, outside) tcp 115.248.153.252 192.168.22.21 6303 6303 netmask 255.255.255.255
For the static PAT 2 above for example, when traffic is coming to 115.248.153.252 IDE oucederomsurlesecondport 6303, ASA would not know if NAT it back to 192.168.22.19 or 192.168.22.21, because both use the same port.
-
vMotion between two hosts with different version?
HelloCan I vMotion VM between two hosts with different version? For example, a virtual machine of esxi 6.0 5.5 esxi and esxi esxi 6.0 5.5 vMotion.
Thank you.
Yes, it will avoid you to move.
Maybe you are looking for
-
Firefox always displays random lines while playing any HTML5 video.
Firefox always random poster while playing any HTML5 video.Screenshot: http://i.imgur.com/8zSNOJ2.jpg
-
When I open a new tab, it goes straight to the Bing, rather than the white page.
I recently downloaded a program called PDFlite to view the PDF files. He seems to have changed some settings on my Firefox, I does not allow to do so. I am today and there was a Bing toolbar, which I disabled it without problem. But now when I open a
-
3000 J115 7387 Type A32 - Microsoft Vista 64-bit
Do a koow if this PC is running the 64-bit version of Vista MS? It came with the 32-bit version, but I'm about to give up my recovery disk problem and just buy the operating system. If I was thinking about the idea of going to the 64-bit version. If
-
Photo editing plug-ins with Photos?
Is it possible to add third-party plugins to the Photos?
-
OfficeJet Pro 8600: My camera SD card won't drive for my Officejet Pro 8600. Help!
My SD card in my digital camera does not take the reader on the printer. How can I work around this?