Can anyone do more simplify this query
Following are ddl of two tables
1.CREATE TABLE EMPL (
SNO NUMBER,
ENAME VARCHAR2(25),
JOB VARCHAR2(25),
PRIMARY KEY (SNO)
2.CREATE TABLE EMPL_DET (
SNO NUMBER,
SAL VARCHAR2(25)
Following are DMLs of tables
INSERT INTO EMPL(SNO, ENAME, JOB) VALUES (1, 'SMITH', 'CLERK');
INSERT INTO EMPL(SNO, ENAME, JOB) VALUES (2, 'SMITH', 'MANAGER');
INSERT INTO EMPL(SNO, ENAME, JOB) VALUES (3, 'TOM', 'CLK');
INSERT INTO EMPL_DET(SNO, SAL) VALUES (1, '1000');
INSERT INTO EMPL_DET(SNO, SAL) VALUES (2, '10000');
INSERT INTO EMPL_DET(SNO, SAL) VALUES (3, '900');
I want to calculate TotalSAL(column:empl_det.SAL) of each employee(empl.ename) with job-description(empl.job).
Means i want following rows in output
1.(JOB,TotalSAL,ENAME)-->(CLERK,11000,SMITH)
2.(JOB,TotalSAL,ENAME)-->(MANAGER,11000,SMITH)
3.(JOB,TotalSAL,ENAME)-->(CLK,900,TOM)
I tried to write down for single ename
select JOB,x.sal,ename from empl,
select sum(sal) sal from empl_det where sno in
(select sno from empl where ename ='SMITH')
)x
where ename ='SMITH'
order by ename
for each ename i have to fire this query. How can i pass ename list(SMITH,TOM) to this query?
Or can anyone do more simplify this query?
Hi,
When you put some code please enclose it between two lines starting with {noformat}{noformat}
i.e.:
{noformat}{noformat}
SELECT ...
{noformat}{noformat}
Please read <a href="https://forums.oracle.com/forums/thread.jspa?threadID=2174552#9360002">How do I ask a question on the forums?</a>
In order to do this you can use a IN.
i.e.ename IN ('SMITH', 'TOM') etc.
However your code can be simplified as it seems redundant to me.
Please double check it and try to understand what you can improve.
Just a hint: use join and group by without subquery.
Regards.
Al
Edited by: Alberto Faenza on Nov 27, 2012 2:51 PM
Added a hint
Similar Messages
-
Can anyone help me simplify this into a var or class? I'm quite new to this!
sym.$("UKstandardbuttons").fadeToggle();
sym.$("AUSstandardbuttons").fadeOut();
sym.$("Hongkongstandardbuttons").fadeOut();
sym.$("Switzerlandstandardbuttons").fadeOut();
sym.$("Irelandstandardbuttons").fadeOut();
sym.$("Indiastandardbuttons").fadeOut();
sym.$("Japanstandardbuttons").fadeOut();
sym.$("Netherlandsstandardbuttons").fadeOut();
sym.$("Spainstandardbuttons").fadeOut();
into a var or class? so i don't have to list similar code for each element (UKstandardbutton)'s action
thanks!
JamesThanks, can you help me understand how to make an array work?
I need to fade toggle a different country png for each country button and fade out the rest of the country images i.e.: when i click the UK button i need to fade toggle the UK png and fade out the other countries
when i click the USA button i need to fade toggle the USA ing and fade out the other countries and so on
sym.getSymbol("Countries").$("UK").fadeToggle();sym.getSymbol("Countries").$("USA","AUS","Hongkong","Switzerland","Ireland","Indias","Japa n","Netherlands","Spain").fadeOut();
sym.getSymbol("Countries").$("USA").fadeToggle();sym.getSymbol("Countries").$("UK","AUS","Hongkong","Switzerland","Ireland","Indias","Japan ","Netherlands","Spain").fadeOut();
but it doesn't seem to work how i have it and i have been told to do an array but I'm not sure how?
etc
can you help? -
Hi
I am trying to wright a SQL query that will return the date the timesheet was submitted and date/time it was approved, can anyone guide me on this?
I basically need person name who submitted, date - time it was submitted for approval, then the person who approved it and the date - time that it was approved
Thanks
RubyRuby,
you can start with HXC_TIMECARD_SUMMARY table for submitter detail. But for approver details, i think you need WF tables to get the data for item type HXCEMP. -
My imac will not load after I enter my password. The only thing I get is the arrow from my mouse on top of a blank white screen. Can anyone tell me what this is? I've restarted and turned off several times. I left it on in this state for 8 hours hoping it would reload and work. No luck.
Hello KCC4ME,
You may try booting your Mac in Safe Boot, as it can resolve many issues that may prevent a successful login.
OS X: What is Safe Boot, Safe Mode?
http://support.apple.com/kb/HT1564
If a Safe Boot allows you to successfully log in, you may have issues with one or more login itmes (while the following article is labelled as a Mavericks article, it is viable for earlier versions of the Mac OS, as well).
OS X Mavericks: If you think you have incompatible login items
http://support.apple.com/kb/PH14201
Cheers,
Allen -
My search bar for my iTunes library no longer works. Also, the menu bar is no longer visible. Noticed this problem last Saturday. This might be an issue with my desktop, and not iTunes itself Can anyone help me with this?
Press Ctrl-B to toggle the menu bar on and off.
When you say that the "search bar for my iTunes library no longer works" can you be more specific? The operation of the search function has changed in iTunes 12, essentially having two very distinct modes:
when Search Entire Library is checked, entering a search string will generate a dropdown of all matching items within your whole library, from which multiple operations are available via context menus
when Search Entire Library is unchecked, entering a search string creates a filtered view of whatever your current focus is (e.g., if you're looking at a playlist the filter applies only to items in that playlist) with none of the dropdown options as in the first case -
i am using
Oracle8i Enterprise Edition Release 8.1.7.4.0 - Production
With the Partitioning option
JServer Release 8.1.7.4.0 - Production
Please help to simplify this query. I also want to make this as a procedure.
select
RH.resort as RH_RESORT,
RH.rate_code as RH_RATE_CODE,
RD.rate_detail_id as RD_RATE_DETAIL_ID,
RD.rate1 as RD_RATE1,
RD.rate2 as RD_RATE2,
RD.rate3 as RD_RATE3,
RD.rate4 as RD_RATE4,
RD.rate5 as RD_RATE5,
RRC.room_category as RM_CAT,
initcap(RRMCAT.long_description) as RM_DESC,
RH.DAY1,
RH.DAY2,
RH.DAY3,
RH.DAY4,
RH.DAY5,
RH.DAY6,
RH.DAY7,
RH.WEEKEND1,
RH.WEEKEND2,
RH.WEEKEND3,
RH.WEEKEND4,
RH.WEEKEND5,
RH.WEEKEND6,
RH.WEEKEND7
from pms_rate_header RH,
pms_rate_detail RD,
pms_rate_room_cat RRC,
resort_room_category RRMCAT
where RH.inactive_date is NULL
and RH.RESORT='FABGOI'
and RH.RATE_CODE ='CRRRACK'
and ('15-Jan-2007' >= RH.BEGIN_DATE
and '16-Jan-2007' <= RH.END_DATE)
and RD.rate_header_id=RH.rate_header_id
and RD.inactive_date is NULL
and ('15-Jan-2007' >= RD.BEGIN_DATE
and '16-Jan-2007' <= RD.END_DATE)
and RRC.rate_detail_id=RD.rate_detail_id
and RRC.resort=RH.resort
and RRMCAT.resort=RH.resort
and RRMCAT.room_category=RRC.room_category
and RRC.inactive_date is NULL
and RRMCAT.inactive_date IS NULL
regards
lee1212where RH.inactive_date is NULL
and RH.RESORT='FABGOI'
and RH.RATE_CODE ='CRRRACK'
and ('15-Jan-2007' >= RH.BEGIN_DATE
and '16-Jan-2007' <= RH.END_DATE)
and RD.rate_header_id=RH.rate_header_id
and RD.inactive_date is NULL
and ('15-Jan-2007' >= RD.BEGIN_DATE
and '16-Jan-2007' <= RD.END_DATE)
and RRC.rate_detail_id=RD.rate_detail_id
and RRC.resort=RH.resort
and RRMCAT.resort=RH.resort
and RRMCAT.room_category=RRC.room_category
and RRC.inactive_date is NULL
and RRMCAT.inactive_date IS NULL
in the above part i am finding repeated joins and lot of 'and's
i want to know any line can be eliminated or the the query can be rewritten in a simple way without affecting it's accuracy?
regards
Lee1212 -
How to simplify this query into simple sql select stmt
Hi,
Please simplify this query
I want to convert this query into single select statement. Is it possible?
If uarserq_choice_ind is not null then
Select ubbwbst_cust_code
From ubbwbst,utrchoi
Where utrchoi_prop_code=ubbwbst_cancel_prod
Else
Select max(utvsrvc_ranking)
From utvsrvc,ubbwbst
Where utvsrvc_code=ubbwbst_cancel_prod
End ifThough i have not tested this statement if mine ...but you can try at your end and let me know whether u got the desired output or not.
Select Decode(uarserq_choice_ind,Null,max_rnking,ubbwbst_cust_code)uarserq_chc
from
(Select max(utvsrvc_ranking)max_rnking,uarserq_choice_ind,ubbwbst_cust_code
From utvsrvc,ubbwbst,utrchoi
Where utvsrvc_code=ubbwbst_cancel_prod
Or utrchoi_prop_code=ubbwbst_cancel_prod
group by uarserq_choice_ind,ubbwbst_cust_code)
Best of Luck.
--Vineet -
How can we give a padding-right:28px; to a frame in firefox, while all the other browsers are supporting the padding style which firefox Mozilla browser doesn’t . can anyone help me on this.
That should be working.<br />
Can you post a link?
Reload web page(s) and bypass the cache.
* Press and hold Shift and left-click the Reload button.
* Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
* Press "Cmd + Shift + R" (MAC)
A good place to ask advice about web development is at the mozillaZine Web Development/Standards Evangelism forum.<br />
The helpers at that forum are more knowledgeable about web development issues.<br />
You need to register at the mozillaZine forum site in order to post at that forum.<br />
See http://forums.mozillazine.org/viewforum.php?f=25<br /> -
I just received photoshop elements 10 that I bought used thru Ebay, for my OSX Mac 10.5.8. I put the discs in my computer and nothing happens to help me download it. Can anyone help me with this instillation challenge?
Does your mac have an intel processor or PowerPC processor?
System requirements | Adobe Photoshop Elements
Did you insert the disk that is labeled mac os?
After you insert the disk, it should show on your desktop.
If you double click on the the disk icon on the desktop, does anything happen?
more info about the included disks:
FAQ: Installing Elements 10, or What do all these disks do? -
Can anyone tell me what this Time Machine error means? The network backup disk does not support the required AFP features?
AFP - Apple Filing Protocol
The Network Attached Storage (NAS) that you are pointing Time Machine at does not have the features needed by Time Machine in order to do its Thing. Time Machine needs some specific features that are not typically available on generic networked storage devices.
There are manufactures that support the Mac OS X HFS+ file system formats and implement all the needed AFP protocol packets necessary so that they can be used with Time Machine, but apparently yours does not.
If you are not using a networked mounted volume for Time Machine, then more information will be needed about your Time Machine setup. -
Want to install Skydrive on my mac, but the app store wants US billing information and I am in Gibraltar. Can anyone help me with this?
Yes, if this is a permanent change. But you still have to have all the other changes - billing address, credit card, residence, etc. See Manage My Apple ID.
If you can't remember answers to security questions:
The Three Best Alternatives for Security Questions and Rescue Mail
1. Use Apple's Express Lane.
Go to https://expresslane.apple.com ; click 'See all products and services' at the
bottom of the page. In the next page click 'More Products and Services, then
'Apple ID'. In the next page select 'Other Apple ID Topics' then 'Forgotten Apple
ID security questions' and click 'Continue'. Please be patient waiting for the return
phone call. It will come in time depending on how heavily the servers are being hit.
2. Call Apple Support in your country: Customer Service: Contact Apple support.
3. Rescue email address and how to reset Apple ID security questions.
A substitute for using the security questions is to use 2-step verification:
Two-step verification FAQ Get answers to frequently asked questions about two-step verification for Apple ID. -
Can anyone help me solving this problem with Mail?
I haven´t being able to send emails with MAIL for two days. I have managed 7 email accounts with 3 different servers for more than 2 years with no problem until last Monday.
Basically, what I can notice as unusual is this message from Connection Inspector:
220-We do not authorize the use of this system to transport unsolicited,
220 and/or bulk e-mail.
But I have copy/pasted what Connection Inspector says:
urityLevelNegotiatedSSL] -- host:mail.spanishinbariloche.com -- port:995 -- socket:0x117b0fc60 -- thread:0x117b8b340
+OK
WROTE Oct 16 14:09:36.480 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.spanishinbariloche.com -- port:995 -- socket:0x118714190 -- thread:0x11872ee70
CAPA
READ Oct 16 14:09:36.531 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.spanishinbariloche.com -- port:995 -- socket:0x11867d520 -- thread:0x11734ba80
+OK
WROTE Oct 16 14:09:36.552 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.fundaciondeloslagos.org -- port:995 -- socket:0x119c3e2f0 -- thread:0x1189210d0
USER [email protected]
WROTE Oct 16 14:09:36.622 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.lamontana.com -- port:995 -- socket:0x11d40d8c0 -- thread:0x114462fe0
USER [email protected]
READ Oct 16 14:09:36.640 [kCFStreamSocketSecurityLevelNone] -- host:mail.fundaciondeloslagos.org -- port:587 -- socket:0x1181804d0 -- thread:0x118731cd0
250-dime124.dizinc.com Hello [192.168.2.5] [190.49.30.228]
250-SIZE 52428800
250-8BITMIME
250-PIPELINING
250-AUTH PLAIN LOGIN
250-STARTTLS
250 HELP
WROTE Oct 16 14:09:36.666 [kCFStreamSocketSecurityLevelNone] -- host:mail.spanishinbariloche.com -- port:587 -- socket:0x11adb69c0 -- thread:0x11445b140
EHLO [192.168.2.5]
READ Oct 16 14:09:36.677 [kCFStreamSocketSecurityLevelNone] -- host:mail.lamontana.com -- port:587 -- socket:0x11d403520 -- thread:0x11d40e9f0
250-dime155.dizinc.com Hello [192.168.2.5] [190.49.30.228]
250-SIZE 52428800
250-8BITMIME
250-PIPELINING
250-AUTH PLAIN LOGIN
250-STARTTLS
250 HELP
WROTE Oct 16 14:09:36.694 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.spanishinbariloche.com -- port:995 -- socket:0x11863c650 -- thread:0x1168cdf20
USER [email protected]
WROTE Oct 16 14:09:36.720 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.fundaciondeloslagos.org -- port:995 -- socket:0x117349340 -- thread:0x1005af900
USER [email protected]
WROTE Oct 16 14:09:36.744 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.spanishinbariloche.com -- port:995 -- socket:0x117b0fc60 -- thread:0x117b8b340
PASS ********
WROTE Oct 16 14:09:36.795 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.spanishinbariloche.com -- port:995 -- socket:0x11867d520 -- thread:0x11734ba80
PASS ********
READ Oct 16 14:09:36.806 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.spanishinbariloche.com -- port:995 -- socket:0x118714190 -- thread:0x11872ee70
+OK
CAPA
TOP
UIDL
RESP-CODES
PIPELINING
USER
SASL PLAIN LOGIN
READ Oct 16 14:09:36.870 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.fundaciondeloslagos.org -- port:995 -- socket:0x119c3e2f0 -- thread:0x1189210d0
+OK
WROTE Oct 16 14:09:36.871 [kCFStreamSocketSecurityLevelNone] -- host:mail.fundaciondeloslagos.org -- port:587 -- socket:0x1181804d0 -- thread:0x118731cd0
QUIT
WROTE Oct 16 14:09:36.924 [kCFStreamSocketSecurityLevelNone] -- host:mail.lamontana.com -- port:587 -- socket:0x11d403520 -- thread:0x11d40e9f0
QUIT
READ Oct 16 14:09:36.948 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.lamontana.com -- port:995 -- socket:0x11d40d8c0 -- thread:0x114462fe0
+OK
READ Oct 16 14:09:36.996 [kCFStreamSocketSecurityLevelNone] -- host:mail.spanishinbariloche.com -- port:587 -- socket:0x11adb69c0 -- thread:0x11445b140
250-dime124.dizinc.com Hello [192.168.2.5] [190.49.30.228]
250-SIZE 52428800
250-8BITMIME
250-PIPELINING
250-AUTH PLAIN LOGIN
250-STARTTLS
250 HELP
READ Oct 16 14:09:37.012 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.spanishinbariloche.com -- port:995 -- socket:0x11863c650 -- thread:0x1168cdf20
+OK
READ Oct 16 14:09:37.054 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.fundaciondeloslagos.org -- port:995 -- socket:0x117349340 -- thread:0x1005af900
+OK
WROTE Oct 16 14:09:37.065 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.spanishinbariloche.com -- port:995 -- socket:0x118714190 -- thread:0x11872ee70
USER [email protected]
READ Oct 16 14:09:37.087 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.spanishinbariloche.com -- port:995 -- socket:0x117b0fc60 -- thread:0x117b8b340
+OK Logged in.
WROTE Oct 16 14:09:37.094 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.fundaciondeloslagos.org -- port:995 -- socket:0x119c3e2f0 -- thread:0x1189210d0
PASS ********
READ Oct 16 14:09:37.124 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.spanishinbariloche.com -- port:995 -- socket:0x11867d520 -- thread:0x11734ba80
+OK Logged in.
WROTE Oct 16 14:09:37.179 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.lamontana.com -- port:995 -- socket:0x11d40d8c0 -- thread:0x114462fe0
PASS ********
WROTE Oct 16 14:09:37.219 [kCFStreamSocketSecurityLevelNone] -- host:mail.spanishinbariloche.com -- port:587 -- socket:0x11adb69c0 -- thread:0x11445b140
QUIT
WROTE Oct 16 14:09:37.246 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.spanishinbariloche.com -- port:995 -- socket:0x11863c650 -- thread:0x1168cdf20
PASS ********
WROTE Oct 16 14:09:37.274 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.fundaciondeloslagos.org -- port:995 -- socket:0x117349340 -- thread:0x1005af900
PASS ********
WROTE Oct 16 14:09:37.331 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.spanishinbariloche.com -- port:995 -- socket:0x117b0fc60 -- thread:0x117b8b340
QUIT
READ Oct 16 14:09:37.384 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.spanishinbariloche.com -- port:995 -- socket:0x118714190 -- thread:0x11872ee70
+OK
WROTE Oct 16 14:09:37.388 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.spanishinbariloche.com -- port:995 -- socket:0x11867d520 -- thread:0x11734ba80
QUIT
READ Oct 16 14:09:37.421 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.fundaciondeloslagos.org -- port:995 -- socket:0x119c3e2f0 -- thread:0x1189210d0
+OK Logged in.
READ Oct 16 14:09:37.519 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.lamontana.com -- port:995 -- socket:0x11d40d8c0 -- thread:0x114462fe0
+OK Logged in.
WROTE Oct 16 14:09:37.578 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.spanishinbariloche.com -- port:995 -- socket:0x118714190 -- thread:0x11872ee70
PASS ********
READ Oct 16 14:09:37.580 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.spanishinbariloche.com -- port:995 -- socket:0x11863c650 -- thread:0x1168cdf20
+OK Logged in.
READ Oct 16 14:09:37.602 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.fundaciondeloslagos.org -- port:995 -- socket:0x117349340 -- thread:0x1005af900
+OK Logged in.
READ Oct 16 14:09:37.649 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.spanishinbariloche.com -- port:995 -- socket:0x117b0fc60 -- thread:0x117b8b340
+OK Logging out.
WROTE Oct 16 14:09:37.657 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.fundaciondeloslagos.org -- port:995 -- socket:0x119c3e2f0 -- thread:0x1189210d0
QUIT
WROTE Oct 16 14:09:37.680 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.lamontana.com -- port:995 -- socket:0x11d40d8c0 -- thread:0x114462fe0
QUIT
READ Oct 16 14:09:37.705 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.spanishinbariloche.com -- port:995 -- socket:0x11867d520 -- thread:0x11734ba80
+OK Logging out.
WROTE Oct 16 14:09:37.731 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.spanishinbariloche.com -- port:995 -- socket:0x11863c650 -- thread:0x1168cdf20
QUIT
WROTE Oct 16 14:09:37.756 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.fundaciondeloslagos.org -- port:995 -- socket:0x117349340 -- thread:0x1005af900
QUIT
READ Oct 16 14:09:37.915 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.spanishinbariloche.com -- port:995 -- socket:0x118714190 -- thread:0x11872ee70
+OK Logged in.
WROTE Oct 16 14:09:37.945 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.spanishinbariloche.com -- port:995 -- socket:0x118714190 -- thread:0x11872ee70
QUIT
READ Oct 16 14:09:37.976 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.fundaciondeloslagos.org -- port:995 -- socket:0x119c3e2f0 -- thread:0x1189210d0
+OK Logging out.
READ Oct 16 14:09:38.010 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.lamontana.com -- port:995 -- socket:0x11d40d8c0 -- thread:0x114462fe0
+OK Logging out.
READ Oct 16 14:09:38.051 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.spanishinbariloche.com -- port:995 -- socket:0x11863c650 -- thread:0x1168cdf20
+OK Logging out.
READ Oct 16 14:09:38.079 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.fundaciondeloslagos.org -- port:995 -- socket:0x117349340 -- thread:0x1005af900
+OK Logging out.
READ Oct 16 14:09:38.270 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.spanishinbariloche.com -- port:995 -- socket:0x118714190 -- thread:0x11872ee70
+OK Logging out.
CONNECTED Oct 16 14:11:00.752 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.spanishinbariloche.com -- port:995 -- socket:0x11864c2e0 -- thread:0x117b48800
CONNECTED Oct 16 14:11:00.752 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.spanishinbariloche.com -- port:995 -- socket:0x1173e2b40 -- thread:0x1189fad80
CONNECTED Oct 16 14:11:00.753 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.spanishinbariloche.com -- port:995 -- socket:0x1167c5cf0 -- thread:0x118151ef0
CONNECTED Oct 16 14:11:00.754 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.spanishinbariloche.com -- port:995 -- socket:0x1168c80b0 -- thread:0x1188b42a0
CONNECTED Oct 16 14:11:00.755 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.fundaciondeloslagos.org -- port:995 -- socket:0x115fbf290 -- thread:0x11867d890
CONNECTED Oct 16 14:11:00.755 [kCFStreamSocketSecurityLevelNone] -- host:mail.spanishinbariloche.com -- port:25 -- socket:0x11ad0a7d0 -- thread:0x11b3406f0
CONNECTED Oct 16 14:11:00.756 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.lamontana.com -- port:995 -- socket:0x1167388b0 -- thread:0x116677ef0
CONNECTED Oct 16 14:11:00.756 [kCFStreamSocketSecurityLevelNone] -- host:mail.fundaciondeloslagos.org -- port:25 -- socket:0x119c94890 -- thread:0x11d40a2a0
CONNECTED Oct 16 14:11:00.757 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.fundaciondeloslagos.org -- port:995 -- socket:0x11d4f2e80 -- thread:0x118150ca0
CONNECTED Oct 16 14:11:00.757 [kCFStreamSocketSecurityLevelNone] -- host:mail.lamontana.com -- port:587 -- socket:0x1179d3df0 -- thread:0x11731e680
READ Oct 16 14:11:03.770 [kCFStreamSocketSecurityLevelNone] -- host:mail.spanishinbariloche.com -- port:25 -- socket:0x11ad0a7d0 -- thread:0x11b3406f0
451-The server has reached its limit for processing requests from your host.
451 Please try again later.
READ Oct 16 14:11:03.770 [kCFStreamSocketSecurityLevelNone] -- host:mail.fundaciondeloslagos.org -- port:25 -- socket:0x119c94890 -- thread:0x11d40a2a0
451-The server has reached its limit for processing requests from your host.
451 Please try again later.
READ Oct 16 14:11:03.777 [kCFStreamSocketSecurityLevelNone] -- host:mail.lamontana.com -- port:587 -- socket:0x1179d3df0 -- thread:0x11731e680
220-dime155.dizinc.com ESMTP Exim 4.80 #2 Wed, 16 Oct 2013 13:11:02 -0400
220-We do not authorize the use of this system to transport unsolicited,
220 and/or bulk e-mail.
WROTE Oct 16 14:11:03.863 [kCFStreamSocketSecurityLevelNone] -- host:mail.lamontana.com -- port:587 -- socket:0x1179d3df0 -- thread:0x11731e680
EHLO [192.168.2.5]
CONNECTED Oct 16 14:11:04.165 [kCFStreamSocketSecurityLevelNone] -- host:mail.spanishinbariloche.com -- port:587 -- socket:0x117944c00 -- thread:0x11b3406f0
CONNECTED Oct 16 14:11:04.168 [kCFStreamSocketSecurityLevelNone] -- host:mail.fundaciondeloslagos.org -- port:587 -- socket:0x1179f2fe0 -- thread:0x11d40a2a0
READ Oct 16 14:11:04.193 [kCFStreamSocketSecurityLevelNone] -- host:mail.lamontana.com -- port:587 -- socket:0x1179d3df0 -- thread:0x11731e680
250-dime155.dizinc.com Hello [192.168.2.5] [190.49.30.228]
250-SIZE 52428800
250-8BITMIME
250-PIPELINING
250-AUTH PLAIN LOGIN
250-STARTTLS
250 HELP
WROTE Oct 16 14:11:04.242 [kCFStreamSocketSecurityLevelNone] -- host:mail.lamontana.com -- port:587 -- socket:0x1179d3df0 -- thread:0x11731e680
QUIT
READ Oct 16 14:11:04.262 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.fundaciondeloslagos.org -- port:995 -- socket:0x115fbf290 -- thread:0x11867d890
+OK Dovecot ready.
WROTE Oct 16 14:11:04.300 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.fundaciondeloslagos.org -- port:995 -- socket:0x115fbf290 -- thread:0x11867d890
CAPA
READ Oct 16 14:11:04.486 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.lamontana.com -- port:995 -- socket:0x1167388b0 -- thread:0x116677ef0
+OK Dovecot ready.
READ Oct 16 14:11:04.491 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.fundaciondeloslagos.org -- port:995 -- socket:0x11d4f2e80 -- thread:0x118150ca0
+OK Dovecot ready.
READ Oct 16 14:11:04.493 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.spanishinbariloche.com -- port:995 -- socket:0x1173e2b40 -- thread:0x1189fad80
+OK Dovecot ready.
READ Oct 16 14:11:04.495 [kCFStreamSocketSecurityLevelNone] -- host:mail.spanishinbariloche.com -- port:587 -- socket:0x117944c00 -- thread:0x11b3406f0
220-dime124.dizinc.com ESMTP Exim 4.80.1 #2 Wed, 16 Oct 2013 13:11:05 -0400
220-We do not authorize the use of this system to transport unsolicited,
220 and/or bulk e-mail.
READ Oct 16 14:11:04.496 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.spanishinbariloche.com -- port:995 -- socket:0x11864c2e0 -- thread:0x117b48800
+OK Dovecot ready.
READ Oct 16 14:11:04.497 [kCFStreamSocketSecurityLevelNone] -- host:mail.fundaciondeloslagos.org -- port:587 -- socket:0x1179f2fe0 -- thread:0x11d40a2a0
220-dime124.dizinc.com ESMTP Exim 4.80.1 #2 Wed, 16 Oct 2013 13:11:05 -0400
220-We do not authorize the use of this system to transport unsolicited,
220 and/or bulk e-mail.
READ Oct 16 14:11:04.499 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.spanishinbariloche.com -- port:995 -- socket:0x1167c5cf0 -- thread:0x118151ef0
+OK Dovecot ready.
WROTE Oct 16 14:11:04.511 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.lamontana.com -- port:995 -- socket:0x1167388b0 -- thread:0x116677ef0
CAPA
WROTE Oct 16 14:11:04.536 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.fundaciondeloslagos.org -- port:995 -- socket:0x11d4f2e80 -- thread:0x118150ca0
CAPA
WROTE Oct 16 14:11:04.561 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.spanishinbariloche.com -- port:995 -- socket:0x1173e2b40 -- thread:0x1189fad80
CAPA
READ Oct 16 14:11:04.586 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.spanishinbariloche.com -- port:995 -- socket:0x1168c80b0 -- thread:0x1188b42a0
+OK Dovecot ready.
WROTE Oct 16 14:11:04.594 [kCFStreamSocketSecurityLevelNone] -- host:mail.spanishinbariloche.com -- port:587 -- socket:0x117944c00 -- thread:0x11b3406f0
EHLO [192.168.2.5]
WROTE Oct 16 14:11:04.614 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.spanishinbariloche.com -- port:995 -- socket:0x11864c2e0 -- thread:0x117b48800
CAPA
READ Oct 16 14:11:04.625 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.fundaciondeloslagos.org -- port:995 -- socket:0x115fbf290 -- thread:0x11867d890
+OK
CAPA
TOP
UIDL
RESP-CODES
PIPELINING
USER
SASL PLAIN LOGIN
WROTE Oct 16 14:11:04.648 [kCFStreamSocketSecurityLevelNone] -- host:mail.fundaciondeloslagos.org -- port:587 -- socket:0x1179f2fe0 -- thread:0x11d40a2a0
EHLO [192.168.2.5]
WROTE Oct 16 14:11:04.667 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.spanishinbariloche.com -- port:995 -- socket:0x1167c5cf0 -- thread:0x118151ef0
CAPA
WROTE Oct 16 14:11:04.778 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.spanishinbariloche.com -- port:995 -- socket:0x1168c80b0 -- thread:0x1188b42a0
CAPA
READ Oct 16 14:11:04.838 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.lamontana.com -- port:995 -- socket:0x1167388b0 -- thread:0x116677ef0
+OK
CAPA
TOP
UIDL
RESP-CODES
PIPELINING
USER
SASL PLAIN LOGIN
WROTE Oct 16 14:11:04.859 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.fundaciondeloslagos.org -- port:995 -- socket:0x115fbf290 -- thread:0x11867d890
USER [email protected]
READ Oct 16 14:11:04.865 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.fundaciondeloslagos.org -- port:995 -- socket:0x11d4f2e80 -- thread:0x118150ca0
+OK
CAPA
TOP
UIDL
RESP-CODES
PIPELINING
USER
SASL PLAIN LOGIN
READ Oct 16 14:11:04.886 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.spanishinbariloche.com -- port:995 -- socket:0x1173e2b40 -- thread:0x1189fad80
+OK
CAPA
TOP
UIDL
RESP-CODES
PIPELINING
USER
SASL PLAIN LOGIN
READ Oct 16 14:11:04.921 [kCFStreamSocketSecurityLevelNone] -- host:mail.spanishinbariloche.com -- port:587 -- socket:0x117944c00 -- thread:0x11b3406f0
250-dime124.dizinc.com Hello [192.168.2.5] [190.49.30.228]
250-SIZE 52428800
250-8BITMIME
250-PIPELINING
250-AUTH PLAIN LOGIN
250-STARTTLS
250 HELP
READ Oct 16 14:11:04.938 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.spanishinbariloche.com -- port:995 -- socket:0x11864c2e0 -- thread:0x117b48800
+OK
CAPA
TOP
UIDL
RESP-CODES
PIPELINING
USER
SASL PLAIN LOGIN
READ Oct 16 14:11:04.974 [kCFStreamSocketSecurityLevelNone] -- host:mail.fundaciondeloslagos.org -- port:587 -- socket:0x1179f2fe0 -- thread:0x11d40a2a0
250-dime124.dizinc.com Hello [192.168.2.5] [190.49.30.228]
250-SIZE 52428800
250-8BITMIME
250-PIPELINING
250-AUTH PLAIN LOGIN
250-STARTTLS
250 HELP
WROTE Oct 16 14:11:04.975 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.lamontana.com -- port:995 -- socket:0x1167388b0 -- thread:0x116677ef0
USER [email protected]
READ Oct 16 14:11:04.989 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.spanishinbariloche.com -- port:995 -- socket:0x1167c5cf0 -- thread:0x118151ef0
+OK
CAPA
TOP
UIDL
RESP-CODES
PIPELINING
USER
SASL PLAIN LOGIN
WROTE Oct 16 14:11:05.027 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.fundaciondeloslagos.org -- port:995 -- socket:0x11d4f2e80 -- thread:0x118150ca0
USER [email protected]
WROTE Oct 16 14:11:05.052 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.spanishinbariloche.com -- port:995 -- socket:0x1173e2b40 -- thread:0x1189fad80
USER [email protected]
WROTE Oct 16 14:11:05.080 [kCFStreamSocketSecurityLevelNone] -- host:mail.spanishinbariloche.com -- port:587 -- socket:0x117944c00 -- thread:0x11b3406f0
QUIT
READ Oct 16 14:11:05.107 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.spanishinbariloche.com -- port:995 -- socket:0x1168c80b0 -- thread:0x1188b42a0
+OK
CAPA
TOP
UIDL
RESP-CODES
PIPELINING
USER
SASL PLAIN LOGIN
WROTE Oct 16 14:11:05.116 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.spanishinbariloche.com -- port:995 -- socket:0x11864c2e0 -- thread:0x117b48800
USER [email protected]
WROTE Oct 16 14:11:05.143 [kCFStreamSocketSecurityLevelNone] -- host:mail.fundaciondeloslagos.org -- port:587 -- socket:0x1179f2fe0 -- thread:0x11d40a2a0
QUIT
READ Oct 16 14:11:05.182 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.fundaciondeloslagos.org -- port:995 -- socket:0x115fbf290 -- thread:0x11867d890
+OK
WROTE Oct 16 14:11:05.200 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.spanishinbariloche.com -- port:995 -- socket:0x1167c5cf0 -- thread:0x118151ef0
USER [email protected]
READ Oct 16 14:11:05.303 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.lamontana.com -- port:995 -- socket:0x1167388b0 -- thread:0x116677ef0
+OK
WROTE Oct 16 14:11:05.320 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.spanishinbariloche.com -- port:995 -- socket:0x1168c80b0 -- thread:0x1188b42a0
USER [email protected]
READ Oct 16 14:11:05.355 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.fundaciondeloslagos.org -- port:995 -- socket:0x11d4f2e80 -- thread:0x118150ca0
+OK
READ Oct 16 14:11:05.379 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.spanishinbariloche.com -- port:995 -- socket:0x1173e2b40 -- thread:0x1189fad80
+OK
WROTE Oct 16 14:11:05.406 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.fundaciondeloslagos.org -- port:995 -- socket:0x115fbf290 -- thread:0x11867d890
PASS ********
READ Oct 16 14:11:05.440 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.spanishinbariloche.com -- port:995 -- socket:0x11864c2e0 -- thread:0x117b48800
+OK
WROTE Oct 16 14:11:05.476 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.lamontana.com -- port:995 -- socket:0x1167388b0 -- thread:0x116677ef0
PASS ********
READ Oct 16 14:11:05.523 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.spanishinbariloche.com -- port:995 -- socket:0x1167c5cf0 -- thread:0x118151ef0
+OK
WROTE Oct 16 14:11:05.534 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.fundaciondeloslagos.org -- port:995 -- socket:0x11d4f2e80 -- thread:0x118150ca0
PASS ********
WROTE Oct 16 14:11:05.565 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.spanishinbariloche.com -- port:995 -- socket:0x1173e2b40 -- thread:0x1189fad80
PASS ********
WROTE Oct 16 14:11:05.624 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.spanishinbariloche.com -- port:995 -- socket:0x11864c2e0 -- thread:0x117b48800
PASS ********
READ Oct 16 14:11:05.648 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.spanishinbariloche.com -- port:995 -- socket:0x1168c80b0 -- thread:0x1188b42a0
+OK
WROTE Oct 16 14:11:05.690 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.spanishinbariloche.com -- port:995 -- socket:0x1167c5cf0 -- thread:0x118151ef0
PASS ********
READ Oct 16 14:11:05.742 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.fundaciondeloslagos.org -- port:995 -- socket:0x115fbf290 -- thread:0x11867d890
+OK Logged in.
WROTE Oct 16 14:11:05.811 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.spanishinbariloche.com -- port:995 -- socket:0x1168c80b0 -- thread:0x1188b42a0
PASS ********
WROTE Oct 16 14:11:05.864 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.fundaciondeloslagos.org -- port:995 -- socket:0x115fbf290 -- thread:0x11867d890
QUIT
READ Oct 16 14:11:05.872 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.fundaciondeloslagos.org -- port:995 -- socket:0x11d4f2e80 -- thread:0x118150ca0
+OK Logged in.
READ Oct 16 14:11:05.901 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.spanishinbariloche.com -- port:995 -- socket:0x1173e2b40 -- thread:0x1189fad80
+OK Logged in.
WROTE Oct 16 14:11:05.947 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.fundaciondeloslagos.org -- port:995 -- socket:0x11d4f2e80 -- thread:0x118150ca0
QUIT
READ Oct 16 14:11:05.969 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.spanishinbariloche.com -- port:995 -- socket:0x11864c2e0 -- thread:0x117b48800
+OK Logged in.
WROTE Oct 16 14:11:05.971 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.spanishinbariloche.com -- port:995 -- socket:0x1173e2b40 -- thread:0x1189fad80
QUIT
READ Oct 16 14:11:05.987 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.lamontana.com -- port:995 -- socket:0x1167388b0 -- thread:0x116677ef0
+OK Logged in.
WROTE Oct 16 14:11:06.023 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.spanishinbariloche.com -- port:995 -- socket:0x11864c2e0 -- thread:0x117b48800
QUIT
READ Oct 16 14:11:06.028 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.spanishinbariloche.com -- port:995 -- socket:0x1167c5cf0 -- thread:0x118151ef0
+OK Logged in.
WROTE Oct 16 14:11:06.080 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.lamontana.com -- port:995 -- socket:0x1167388b0 -- thread:0x116677ef0
QUIT
WROTE Oct 16 14:11:06.132 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.spanishinbariloche.com -- port:995 -- socket:0x1167c5cf0 -- thread:0x118151ef0
QUIT
READ Oct 16 14:11:06.154 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.spanishinbariloche.com -- port:995 -- socket:0x1168c80b0 -- thread:0x1188b42a0
+OK Logged in.
READ Oct 16 14:11:06.189 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.fundaciondeloslagos.org -- port:995 -- socket:0x115fbf290 -- thread:0x11867d890
+OK Logging out.
WROTE Oct 16 14:11:06.214 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.spanishinbariloche.com -- port:995 -- socket:0x1168c80b0 -- thread:0x1188b42a0
QUIT
READ Oct 16 14:11:06.273 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.fundaciondeloslagos.org -- port:995 -- socket:0x11d4f2e80 -- thread:0x118150ca0
+OK Logging out.
READ Oct 16 14:11:06.294 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.spanishinbariloche.com -- port:995 -- socket:0x1173e2b40 -- thread:0x1189fad80
+OK Logging out.
READ Oct 16 14:11:06.346 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.spanishinbariloche.com -- port:995 -- socket:0x11864c2e0 -- thread:0x117b48800
+OK Logging out.
READ Oct 16 14:11:06.406 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.lamontana.com -- port:995 -- socket:0x1167388b0 -- thread:0x116677ef0
+OK Logging out.
READ Oct 16 14:11:06.453 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.spanishinbariloche.com -- port:995 -- socket:0x1167c5cf0 -- thread:0x118151ef0
+OK Logging out.
READ Oct 16 14:11:06.540 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.spanishinbariloche.com -- port:995 -- socket:0x1168c80b0 -- thread:0x1188b42a0
+OK Logging out.Deep1974 wrote:
Can anyone help me solving this question with explaination .
Given:
11. public String makinStrings() {
12. String s = ?Fred?;
13. s = s + ?47?;
14. s = s.substring(2, 5);
15. s = s.toUpperCase();
16. return s.toString();
17. }
How many String objects will be created when this method is invoked?
A. 1
B. 2
C. 3
D. 4
E. 5
F. 61 is created at line 13 as a result of StringBuilder.toString().
1 is created at line 14 as a result of substring().
1 is created at line 15 as a result of toUpperCase().
The Strings "Fred" and "47" at lines 12 and 13 are NOT created when that method is invoked. They are created when the class is loaded.
Note, however, that some of this is based on current implementations, NOT on requirements of the JLS or VM spec, so really, the answers could be different. Overall, it's a poorly thought out question.
Edited by: jverd on Jan 28, 2010 2:35 PM -
Can anyone tell me if this is correct ?
Can anyone tell me if this is correct ?
String query = "SELECT * FROM " + tablename + " where RECP_MOBILE = '" + mobile + "'" + "and USER_ID = '" + id + "'" ;
( mobile and id are values from another place )
I tried to execute this, but as long as the user_id is right, it will return me the values even though the mobile is wrong.
Thank you.I think you should have a space before "and USER_ID"; I'm surprised it even runs without that. Otherwise, it should be okay as long as mobile and id don't contain any quote characters.
-
I don't know much about computers can anyone walk me through this ? How Do I Change The Software Update Server Address On A Client ? what do I open and how do i put it in the right spot?
The simplest method is to run a defaults command on the client Macs (easily pushed via Apple Remote Desktop):
defaults write com.apple.SoftwareUpdate CatalogURL 'HTTP_URL_FOR_CATALOG'
for a user. If you run it via sudo it will set it for whenever you use softwareupdate as root.
The HTTP_URL_FOR_CATALOG has been changed with Mac OS X 10.6. If you use MCX it will automatically pick the new catalog – however if doing it manually the following URLs need to be used for whichever client version is in question:
Mac OS X 10.4: http://mysus.example.com:8088/index.sucatalog
Mac OS X 10.5: http://mysus.example.com:8088/index-leopard.merged-1.sucatalog.sucatalog
Mac OS X 10.6: http://mysus.example.com:8088/index-leopard-snowleopard.merged-1.sucatalog
Mac OS X 10.7: http://mysus.example.com:8088/index-lion-snowleopard-leopard.merged-1.sucatalog
Mac OS X 10.8: index-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog
To double check this applied you can run the following command:
/usr/libexec/PlistBuddy -c Print /Library/Preferences/com.apple.SoftwareUpdate.plist
and /usr/libexec/PlistBuddy -c Print ~/Library/Preferences/com.apple.SoftwareUpdate.plist
to see what settings are for the computer and user appropriately.
If this is working correctly when running Software Update (GUI) you should see the server address appear in parenthesis in the title of the window.
MCX
Another alternative is to use Workgroup Manager to manage the preferences via MCX from your server. This can be done for users, or for computers if they are bound to your Open Directory.
If you are using 10.5 Server or newer: you can simply use the Software Update section under Preferences.
Manually:
Choose the accounts, computers, or groups to have the preference applied to.
Click on Preferences, and then the Details tab
Press the Add… button and navigate to /Library/Preferences/com.apple.SoftwareUpdate.plist
Press Edit…
Under Often, add a New Key and enter the name CatalogURL
Make sure the type is string and then enter your SUS URL (eg. http://mysus.example.com:8088/index.sucatalog or if using 10.6: http://mysus.examle.com:8088/ – see above from the defaults section)
Press Apply Now, then Done. Once users/computers have refreshed their MCX settings (usually the next login or restart) the new settings will take over.
If this is working correctly when running Software Update (GUI) you should see the server address appear in parenthesis in the title of the window.
In order to have a system-wide configuration one has to run the following:
sudo defaults write /Library/Preferences/com.apple.SoftwareUpdate CatalogURL "http://your.updates-server.lan:8088/index.sucatalog"
In order to correctly work both on Leopard and Snow Leopard the right command to issue is:
defaults write /Library/Preferences/com.apple.SoftwareUpdate CatalogURL "http://your.updates-server.lan:8088/index-leopard-snowleopard.merged-1.sucatalog"
Happily used and tested on my network
The DNS trick that Chealion points out is fantastic. I use it at our office, and every computer on our LAN will automatically pull the updates from the local repository at high speed without any configuration.
Create the swscan.apple.com DNS zone on your internal DNS server, and have it resolve via an A record to your Mac
Tags: automaticupdates mac clients macosx setting as default software update
Category: Serverfault
Share
0
0
Google +
0
0
0
5
You might also like:
Can I Update My Jb 4s To 6.1.2 Without Restore? Tue. Jan 21st, 2014
Iphone 4 Not Charging After Update To IOS6
IPad 2 Not Updating To IOS 5.1
How To Resolve The â€âunable To Install Update†Error For OTA IOS Updates?
What Is â€âSoftware Update†Doing When It Says â€âChecking For New Softwareâ€?
Advertisement
Comment
- See more at: http://www.eonlinegratis.com/2013/how-do-i-change-the-software-update-server-add ress-on-a-client-mac-to-use-my-own-server/#sthash.YhHp5zWk.dpuf -
"It is formatted incorrectly, or is not a format that iBooks can open". Can anyone help me with this message of a book that I purchased on iBooks, read, highlighted in the book and now I can't open it anymore. Please help!!!
Mine does the same thing occasionally, is your phone jailbroken? Sometimes it will work if you delete the book and reinstall it or put your phone into airplane mode then turn it back off.
Maybe you are looking for
-
Need help connecting MacBook to TV
I'm trying to connect my MacBook to a regular everyday TV (i.e. only the three A/V inputs), but having trouble with the monitor (audio isn't a problem). I have a Dynex mini-DVI to video converter and a yellow video cable, but it only puts a very scat
-
How can I create a DVD image that PC users can retrieve and burn...
I need to create a DVD disc image that PC users can retrieve from a private network share and burn to a blank DVD. Once burned, it needs to auto-start at the Menu. The master works fine. Images burned using the Mac Disk Utility work fine. But I have
-
hi Expert's when i am configure sender RFC ADAPTER i am facing problem so plz help me in comm channel Rfc:server parameters application server gatway: it host name of sender system(sap abap) application server service: it..........................? w
-
Problem with BAPI_PROCORDCONF_CREATE_TT
Dear Gurus, I am trying to change the indicator "Final delivery" in a process order . I am trying to do it with a BAPI . I can't do it ... And the funny is that the system say that the Order was saved !!!! Look my code ... *& Report YDP_METAL_BOOK_
-
I recently got on the fairly new $35 prepaid plan, and I got the Samsung Intensity III. I noticed the mobile e-mail application, and I decided to use it. I found it much more convenient than using the mobile web e-mail, and then I noticed that it e